summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/resources/accept.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/XMLHttpRequest/resources/accept.py')
-rw-r--r--testing/web-platform/tests/XMLHttpRequest/resources/accept.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/web-platform/tests/XMLHttpRequest/resources/accept.py b/testing/web-platform/tests/XMLHttpRequest/resources/accept.py
new file mode 100644
index 000000000..2fdf210b6
--- /dev/null
+++ b/testing/web-platform/tests/XMLHttpRequest/resources/accept.py
@@ -0,0 +1,3 @@
+def main(request, response):
+ return [("Content-Type", "text/plain")], request.headers.get("accept", "NO")
+