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

Unified Diff: net/websockets/websocket_job.cc

Issue 6823075: Accept new WebSocket handshake format (hybi-04 and later). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace DCHECKs with DVLOG. Created 9 years, 7 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 | « net/websockets/websocket_handshake_handler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_job.cc
diff --git a/net/websockets/websocket_job.cc b/net/websockets/websocket_job.cc
index 7a5e030883d50f738b6c00f3ad56a744e03ee200..f90d55ffd17ebd3fce2002ad0c2fd2dd9ba8cedc 100644
--- a/net/websockets/websocket_job.cc
+++ b/net/websockets/websocket_job.cc
@@ -271,6 +271,8 @@ bool WebSocketJob::SendHandshakeRequest(const char* data, int len) {
return false;
// handshake message is completed.
+ handshake_response_->set_protocol_version(
+ handshake_request_->protocol_version());
AddCookieHeaderAndSend();
// Just buffered in |handshake_request_|.
return true;
« no previous file with comments | « net/websockets/websocket_handshake_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698