summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/nosniff/resources/worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/fetch/nosniff/resources/worker.py')
-rw-r--r--testing/web-platform/tests/fetch/nosniff/resources/worker.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/testing/web-platform/tests/fetch/nosniff/resources/worker.py b/testing/web-platform/tests/fetch/nosniff/resources/worker.py
deleted file mode 100644
index 3903ba349..000000000
--- a/testing/web-platform/tests/fetch/nosniff/resources/worker.py
+++ /dev/null
@@ -1,16 +0,0 @@
-def main(request, response):
- type = request.GET.first("type", None)
-
- content = "// nothing to see here"
- content += "\n"
- content += "this.postMessage('hi')"
-
- response.add_required_headers = False
- response.writer.write_status(200)
- response.writer.write_header("x-content-type-options", "nosniff")
- response.writer.write_header("content-length", len(content))
- if(type != None):
- response.writer.write_header("content-type", type)
- response.writer.end_headers()
-
- response.writer.write(content)