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

Unified Diff: net/http/http_auth_handler_digest.cc

Issue 68213017: Fix HTTP protocol scheme debugging checks for WebSockets (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use SchemeIsWsOrWss() in HttpAuthHandlerDigest. Created 7 years, 1 month 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/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..74c74d1339b7da9bfa87f41d1c5755c5b3bdf798 100644
--- a/net/http/http_auth_handler_digest.cc
+++ b/net/http/http_auth_handler_digest.cc
@@ -304,7 +304,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") || HttpUtil::SchemeIsWsOrWss(url))) {
*method = "CONNECT";
*path = GetHostAndPort(url);
} else {

Powered by Google App Engine
This is Rietveld 408576698