Sign in
webkit
/
WebKit
/
47b8206e2462d5a862fef65e142ae8764bd9b9e5
/
.
/
LayoutTests
/
imported
/
w3c
/
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"
)