aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/fetch/h1-parsing/resources/script-with-0x00-in-header.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/fetch/h1-parsing/resources/script-with-0x00-in-header.py')
-rw-r--r--tests/wpt/web-platform-tests/fetch/h1-parsing/resources/script-with-0x00-in-header.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/fetch/h1-parsing/resources/script-with-0x00-in-header.py b/tests/wpt/web-platform-tests/fetch/h1-parsing/resources/script-with-0x00-in-header.py
new file mode 100644
index 00000000000..f4a016a3698
--- /dev/null
+++ b/tests/wpt/web-platform-tests/fetch/h1-parsing/resources/script-with-0x00-in-header.py
@@ -0,0 +1,4 @@
+def main(request, response):
+ response.headers.set("Content-Type", "text/javascript")
+ response.headers.set("Custom", "\0")
+ return "var thisIsJavaScript = 0"