summaryrefslogtreecommitdiffstats
path: root/net/websockets/websocket_handshake_stream_create_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/websockets/websocket_handshake_stream_create_helper.cc')
-rw-r--r--net/websockets/websocket_handshake_stream_create_helper.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/websockets/websocket_handshake_stream_create_helper.cc b/net/websockets/websocket_handshake_stream_create_helper.cc
index 8268cda..b3ff3e2 100644
--- a/net/websockets/websocket_handshake_stream_create_helper.cc
+++ b/net/websockets/websocket_handshake_stream_create_helper.cc
@@ -26,12 +26,17 @@ WebSocketHandshakeStreamBase*
WebSocketHandshakeStreamCreateHelper::CreateBasicStream(
scoped_ptr<ClientSocketHandle> connection,
bool using_proxy) {
+ // The list of supported extensions and parameters is hard-coded.
+ // TODO(ricea): If more extensions are added, consider a more flexible
+ // method.
+ std::vector<std::string> extensions(
+ 1, "permessage-deflate; client_max_window_bits");
return stream_ =
new WebSocketBasicHandshakeStream(connection.Pass(),
connect_delegate_,
using_proxy,
requested_subprotocols_,
- std::vector<std::string>());
+ extensions);
}
// TODO(ricea): Create a WebSocketSpdyHandshakeStream. crbug.com/323852