blob: 402af947c50d80831487ecb0300f65f3fd5b94c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!doctype html>
<title>WebSockets: check Sec-WebSocket-Key</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=../constants.sub.js></script>
<meta name="variant" content="">
<meta name="variant" content="?wss">
<div id=log></div>
<script>
async_test(function(t) {
var xhr = new XMLHttpRequest();
xhr.onload = t.step_func(function() {
assert_equals(xhr.responseText, 'PASS');
t.done();
});
xhr.open("GET", "check.py", true);
xhr.setRequestHeader('Sec-WebSocket-Key', 'jW7qmdXj5Kk5jTClF1BN3');
xhr.send(null);
});
</script>
|