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