Index: LayoutTests/http/tests/websocket/duplicated-headers_wsh.py |
diff --git a/LayoutTests/http/tests/websocket/handshake-fail-by-extensions-header_wsh.py b/LayoutTests/http/tests/websocket/duplicated-headers_wsh.py |
similarity index 82% |
copy from LayoutTests/http/tests/websocket/handshake-fail-by-extensions-header_wsh.py |
copy to LayoutTests/http/tests/websocket/duplicated-headers_wsh.py |
index ecfe41f32fcc23cb73c4f14d7abcfd676ba9b862..fa1d3327d8defad9de6e77058362ebbeac05d2f7 100644 |
--- a/LayoutTests/http/tests/websocket/handshake-fail-by-extensions-header_wsh.py |
+++ b/LayoutTests/http/tests/websocket/duplicated-headers_wsh.py |
@@ -7,7 +7,10 @@ def web_socket_do_extra_handshake(request): |
message += 'Upgrade: websocket\r\n' |
message += 'Connection: Upgrade\r\n' |
message += 'Sec-WebSocket-Accept: %s\r\n' % compute_accept(request.headers_in['Sec-WebSocket-Key'])[0] |
- message += 'Sec-WebSocket-Extensions: x-foo\r\n' |
+ message += 'foo: bar, baz\r\n' |
+ message += 'foo: hoge\r\n' |
+ message += 'FOO: FUGA\r\n' |
+ message += 'xxx: yyy\r\n' |
message += '\r\n' |
request.connection.write(message) |
raise handshake.AbortedByUserException('Abort the connection') # Prevents pywebsocket from sending its own handshake message. |
@@ -15,3 +18,4 @@ def web_socket_do_extra_handshake(request): |
def web_socket_transfer_data(request): |
pass |
+ |