summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-05 04:52:26 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-05 04:52:26 +0000
commitc650cc0144b496ba16b04e3104c4d67a55815e8b (patch)
tree1e5d9f012b1a9a89d543728c43df7372e1fda543 /net/http
parent6188a3ecc8a04599a561185ee5d9cf9a4b9efa6b (diff)
downloadchromium_src-c650cc0144b496ba16b04e3104c4d67a55815e8b.zip
chromium_src-c650cc0144b496ba16b04e3104c4d67a55815e8b.tar.gz
chromium_src-c650cc0144b496ba16b04e3104c4d67a55815e8b.tar.bz2
Http cache: Don't use multiple validation headers when
dealing with byte range requests. Some servers are not happy with that. BUG=25859 TEST=none Review URL: http://codereview.chromium.org/460098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_cache_transaction.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 2838f9d..f758af0 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -1095,7 +1095,9 @@ bool HttpCache::Transaction::ConditionalizeRequest() {
}
custom_request_->extra_headers.append(etag_value);
custom_request_->extra_headers.append("\r\n");
- if (partial_.get() && partial_->IsCurrentRangeCached())
+ // For byte-range requests, make sure that we use only one way to validate
+ // the request.
+ if (partial_.get())
return true;
}