summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_transaction.cc
diff options
context:
space:
mode:
authorricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-23 20:38:14 +0000
committerricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-23 20:38:14 +0000
commit23d3e022325a6444db563930c69c684b551117f3 (patch)
treef5455580af66a60f6af58e809c4293fb07c0a153 /net/http/http_network_transaction.cc
parent20c4c00ab93859d1f6e1e7091cee2612c94561ae (diff)
downloadchromium_src-23d3e022325a6444db563930c69c684b551117f3.zip
chromium_src-23d3e022325a6444db563930c69c684b551117f3.tar.gz
chromium_src-23d3e022325a6444db563930c69c684b551117f3.tar.bz2
HttpNetworkTransaction needs to check if the URL scheme is one
appropriate for WebSockets. Use the new GURL::SchemeIsWSOrWSS method to do the check. BUG= TEST=net_unittests Review URL: https://codereview.chromium.org/82823004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236964 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction.cc')
-rw-r--r--net/http/http_network_transaction.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index f8fc2c0..d2b8471 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -1509,8 +1509,8 @@ GURL HttpNetworkTransaction::AuthURL(HttpAuth::Target target) const {
}
bool HttpNetworkTransaction::ForWebSocketHandshake() const {
- return (websocket_handshake_stream_base_create_helper_ &&
- (request_->url.SchemeIs("ws") || request_->url.SchemeIs("wss")));
+ return websocket_handshake_stream_base_create_helper_ &&
+ request_->url.SchemeIsWSOrWSS();
}
#define STATE_CASE(s) \