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