summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/infrastructure/urls/terminology-0/resources/echo-referrer-text.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/infrastructure/urls/terminology-0/resources/echo-referrer-text.py')
-rw-r--r--testing/web-platform/tests/html/infrastructure/urls/terminology-0/resources/echo-referrer-text.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/infrastructure/urls/terminology-0/resources/echo-referrer-text.py b/testing/web-platform/tests/html/infrastructure/urls/terminology-0/resources/echo-referrer-text.py
new file mode 100644
index 0000000000..8a48d3346a
--- /dev/null
+++ b/testing/web-platform/tests/html/infrastructure/urls/terminology-0/resources/echo-referrer-text.py
@@ -0,0 +1,4 @@
+def main(request, response):
+ response_headers = [(b"Content-Type", b"text/plain")]
+ body = b"%s"% request.headers.get(b"referer", b"")
+ return (200, response_headers, body)