Sign in
webkit
/
WebKit
/
fff5469af9e21121a01bc52b64d66a2e93b51665
/
.
/
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"
)],
""