summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/xhr/resources/parse-headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/xhr/resources/parse-headers.py')
-rw-r--r--testing/web-platform/tests/xhr/resources/parse-headers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/xhr/resources/parse-headers.py b/testing/web-platform/tests/xhr/resources/parse-headers.py
new file mode 100644
index 0000000000..8520baad88
--- /dev/null
+++ b/testing/web-platform/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