Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: net/data/websocket/header-continuation_wsh.py

Issue 1005113002: WebSocket header continuations test case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/websockets/websocket_end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | net/websockets/websocket_end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698