Sign in
webkit
/
WebKit
/
77b63b8e6a326c64f4e14dec31520d24b21e7c7f
/
.
/
LayoutTests
/
http
/
wpt
/
service-workers
/
check-service-worker-header.py
blob: be2cff0635d908dc2d867f8210267cd4d4626a0f [
file
] [
log
] [
blame
]
def
main
(
request
,
response
):
service_worker_header_value
=
request
.
headers
.
get
(
"Service-Worker"
)
code
=
200
if
service_worker_header_value
==
"script"
else
404
return
code
,
[(
"Content-Type"
,
"application/javascript"
)],
""