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

Unified Diff: LayoutTests/http/tests/websocket/duplicated-headers_wsh.py

Issue 130863002: [WebSocket] Merge duplicated HTTP headers for devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a platform dependent test Created 6 years, 11 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
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
+

Powered by Google App Engine
This is Rietveld 408576698