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 0000000000..716b837f49
--- /dev/null
+++ b/testing/web-platform/tests/websockets/security/check.py
@@ -0,0 +1,2 @@
+def main(request, response):
+ return b"FAIL" if b'Sec-WebSocket-Key' in request.headers else b"PASS"