Sign in
cobalt
/
cobalt
/
527110903c994f57b3fc64852b74e941d515b683
/
.
/
third_party
/
web_platform_tests
/
service-workers
/
service-worker
/
resources
/
invalid-chunked-encoding-with-flush.py
blob: 05977c6ab0b5d977cf9490c7240f95f54f4a82d4 [
file
] [
log
] [
blame
]
import
time
def
main
(
request
,
response
):
response
.
headers
.
set
(
b
"Content-Type"
,
b
"application/javascript"
)
response
.
headers
.
set
(
b
"Transfer-encoding"
,
b
"chunked"
)
response
.
write_status_headers
()
time
.
sleep
(
1
)
response
.
writer
.
write
(
b
"XX\r\n\r\n"
)