summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/xhr/resources/parse-headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/xhr/resources/parse-headers.py')
-rw-r--r--test/wpt/tests/xhr/resources/parse-headers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/wpt/tests/xhr/resources/parse-headers.py b/test/wpt/tests/xhr/resources/parse-headers.py
new file mode 100644
index 0000000..8520baa
--- /dev/null
+++ b/test/wpt/tests/xhr/resources/parse-headers.py
@@ -0,0 +1,6 @@
+def main(request, response):
+ content = u""
+ if b"my-custom-header" in request.GET:
+ val = request.GET.first(b"my-custom-header")
+ response.headers.set(b"My-Custom-Header", val)
+ return content