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

Unified Diff: net/websockets/websocket_basic_handshake_stream.cc

Issue 2299703003: Re-land: Only allow HTTP/0.9 support on default ports. (Closed)
Patch Set: Fix test Created 4 years, 4 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: net/websockets/websocket_basic_handshake_stream.cc
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc
index 16e7368cff03f5b8cbb0eab2ea4365dc5266ecd3..2fba665721ef13ba3ed617dd9cab44131fafd031 100644
--- a/net/websockets/websocket_basic_handshake_stream.cc
+++ b/net/websockets/websocket_basic_handshake_stream.cc
@@ -295,7 +295,9 @@ WebSocketBasicHandshakeStream::WebSocketBasicHandshakeStream(
std::vector<std::string> requested_sub_protocols,
std::vector<std::string> requested_extensions,
WebSocketStreamRequest* request)
- : state_(std::move(connection), using_proxy),
+ : state_(std::move(connection),
+ using_proxy,
+ false /* http_09_on_non_default_ports_enabled */),
connect_delegate_(connect_delegate),
http_response_info_(nullptr),
requested_sub_protocols_(requested_sub_protocols),

Powered by Google App Engine
This is Rietveld 408576698