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