| Index: net/data/websocket/header-continuation_wsh.py
|
| diff --git a/net/data/websocket/trailing-whitespace_wsh.py b/net/data/websocket/header-continuation_wsh.py
|
| similarity index 71%
|
| copy from net/data/websocket/trailing-whitespace_wsh.py
|
| copy to net/data/websocket/header-continuation_wsh.py
|
| index 1e6515559c3f457d63e0ed689da3b9561e5f939f..d4a94f2adb68701c944ef403ce078fae6b05861e 100644
|
| --- a/net/data/websocket/trailing-whitespace_wsh.py
|
| +++ b/net/data/websocket/header-continuation_wsh.py
|
| @@ -2,9 +2,9 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
| #
|
| -# The purpose of this test is to verify that the WebSocket handshake correctly
|
| -# ignores trailing whitespace on response headers.
|
| -# It is used by test case WebSocketEndToEndTest.TrailingWhitespace.
|
| +# The purpose of this test is to verify that WebSocket supports header
|
| +# continuations, as deprecated in RFC7230 section 3.2.4.
|
| +# It is used by test case WebSocketEndToEndTest.HeaderContinuations.
|
|
|
| from mod_pywebsocket import handshake
|
| from mod_pywebsocket.handshake.hybi import compute_accept
|
| @@ -16,7 +16,8 @@ def web_socket_do_extra_handshake(request):
|
| 'Upgrade: websocket\r\n'
|
| 'Connection: Upgrade\r\n'
|
| 'Sec-WebSocket-Accept: %s\r\n'
|
| - 'Sec-WebSocket-Protocol: sip \r\n'
|
| + 'Sec-WebSocket-Extensions: permessage-deflate;\r\n'
|
| + ' server_max_window_bits=10\r\n'
|
| '\r\n' % accept)
|
| request.connection.write(message)
|
| # Prevent pywebsocket from sending its own handshake message.
|
|
|