summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/security/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/websockets/security/check.py')
-rw-r--r--testing/web-platform/tests/websockets/security/check.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/web-platform/tests/websockets/security/check.py b/testing/web-platform/tests/websockets/security/check.py
new file mode 100644
index 000000000..f1414376d
--- /dev/null
+++ b/testing/web-platform/tests/websockets/security/check.py
@@ -0,0 +1,2 @@
+def main(request, response):
+ return "FAIL" if 'Sec-WebSocket-Key' in request.headers else "PASS"