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