summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 23:35:08 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 23:35:08 +0000
commitd0607d5f7e4ca94be9d5772767de8693c2e7a510 (patch)
tree138de718ecb365c1035f1901224b80eb6353ddb2 /net
parentbad146c5b3b1a7d0368320fecdbd5b50dbe97501 (diff)
downloadchromium_src-d0607d5f7e4ca94be9d5772767de8693c2e7a510.zip
chromium_src-d0607d5f7e4ca94be9d5772767de8693c2e7a510.tar.gz
chromium_src-d0607d5f7e4ca94be9d5772767de8693c2e7a510.tar.bz2
Temporarily use the Proxy-Connection header before the
Connection header in IsKeepAlive. This is an experiment to see if it allows us to do NTLM auth through Privoxy to a proxy. R=darin BUG=8325 Review URL: http://codereview.chromium.org/46061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/http/http_response_headers.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index bc7ac62..f39d4fe 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -931,8 +931,10 @@ bool HttpResponseHeaders::IsKeepAlive() const {
// meaningful when we don't know that this response was from a proxy, but
// Mozilla also does this, so we'll do the same.
std::string connection_val;
- if (!EnumerateHeader(NULL, "connection", &connection_val))
- EnumerateHeader(NULL, "proxy-connection", &connection_val);
+ // TODO(wtc): A temporary change to look for "proxy-connection" before
+ // "connection" for debugging http://crbug.com/8325.
+ if (!EnumerateHeader(NULL, "proxy-connection", &connection_val))
+ EnumerateHeader(NULL, "connection", &connection_val);
bool keep_alive;