Sign in
cobalt
/
cobalt
/
f9bc0139df6e6eb149345ab9b6ffcc40603fc09f
/
.
/
third_party
/
web_platform_tests
/
fetch
/
api
/
resources
/
script-with-header.py
blob: 5337cc97bdd7737e40398cb066a98a5246ba4392 [
file
] [
log
] [
blame
]
def
main
(
request
,
response
):
headers
=
[(
"Content-type"
,
request
.
GET
.
first
(
"mime"
))]
if
"content"
in
request
.
GET
and
request
.
GET
.
first
(
"content"
)
==
"empty"
:
content
=
''
else
:
content
=
"console.log('Script loaded')"
return
200
,
headers
,
content