Index: net/http/http_auth_handler_digest.cc |
diff --git a/net/http/http_auth_handler_digest.cc b/net/http/http_auth_handler_digest.cc |
index 904430ecb409b22136d8f11fcf5645aca7fc6da6..a8e301a02e89828d848eccbfd2b4491402ef419c 100644 |
--- a/net/http/http_auth_handler_digest.cc |
+++ b/net/http/http_auth_handler_digest.cc |
@@ -18,6 +18,7 @@ |
#include "net/http/http_auth.h" |
#include "net/http/http_request_info.h" |
#include "net/http/http_util.h" |
+#include "url/gurl.h" |
namespace net { |
@@ -304,7 +305,7 @@ void HttpAuthHandlerDigest::GetRequestMethodAndPath( |
const GURL& url = request->url; |
if (target_ == HttpAuth::AUTH_PROXY && |
- (url.SchemeIs("https") || url.SchemeIs("ws") || url.SchemeIs("wss"))) { |
+ (url.SchemeIs("https") || url.SchemeIsWSOrWSS())) { |
szym
2013/11/19 04:39:12
Double checking: is "ws" okay here? ("http" is not
tyoshino (SeeGerritForStatus)
2013/11/19 04:53:47
WebSockets use CONNECT method for both non-secure
|
*method = "CONNECT"; |
*path = GetHostAndPort(url); |
} else { |