Sign in
webkit
/
WebKit
/
6501da5d9efd585f38613665c05cd2c5dda52074
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
XMLHttpRequest
/
resources
/
parse-headers.py
blob: fdc626539e842f6660f533a3684da72e719cef09 [
file
] [
log
] [
blame
]
import
json
def
main
(
request
,
response
):
content
=
""
if
"my-custom-header"
in
request
.
GET
:
val
=
request
.
GET
.
first
(
"my-custom-header"
)
response
.
headers
.
set
(
"My-Custom-Header"
,
val
)
return
content