summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/websockets/security/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/websockets/security/check.py')
-rw-r--r--test/wpt/tests/websockets/security/check.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/wpt/tests/websockets/security/check.py b/test/wpt/tests/websockets/security/check.py
new file mode 100644
index 0000000..716b837
--- /dev/null
+++ b/test/wpt/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"