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

Unified Diff: net/http/http_network_transaction.cc

Issue 42193: Log an error message when we don't find any... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
===================================================================
--- net/http/http_network_transaction.cc (revision 11674)
+++ net/http/http_network_transaction.cc (working copy)
@@ -1428,6 +1428,26 @@
if (!auth_handler_[target]) {
if (establishing_tunnel_) {
+ // Log an error message to help debug http://crbug.com/8771.
+ std::string auth_target(target == HttpAuth::AUTH_PROXY ?
+ "proxy" : "server");
+ LOG(ERROR) << "Can't perform auth to the " << auth_target << " "
+ << AuthOrigin(target).spec()
+ << " when establishing a tunnel";
+
+ std::string challenge;
+ void* iter = NULL;
+ while (response_.headers->EnumerateHeader(&iter, "Proxy-Authenticate",
+ &challenge)) {
+ LOG(ERROR) << " Has header Proxy-Authenticate: " << challenge;
+ }
+
+ iter = NULL;
+ while (response_.headers->EnumerateHeader(&iter, "WWW-Authenticate",
+ &challenge)) {
+ LOG(ERROR) << " Has header WWW-Authenticate: " << challenge;
+ }
+
// We are establishing a tunnel, we can't show the error page because an
// active network attacker could control its contents. Instead, we just
// fail to establish the tunnel.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698