Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
external
/
wpt
/
html
/
webappapis
/
dynamic-markup-insertion
/
opening-the-input-stream
/
resources
/
http-refresh.py
blob: 161a34b6b506aaa501b88e9458d1e160c748e8c6 [
file
] [
log
] [
blame
]
from
wptserve
.
utils
import
isomorphic_encode
def
main
(
request
,
response
):
time
=
isomorphic_encode
(
request
.
url_parts
.
query
)
if
request
.
url_parts
.
query
else
b
'0'
return
200
,
[(
b
'Refresh'
,
time
),
(
b
'Content-Type'
,
b
"text/html"
)],
b
''