summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsclittle <sclittle@chromium.org>2015-06-11 12:23:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-11 19:23:45 +0000
commit80287f81d71b244a59daff479d753eac08cbdfb3 (patch)
tree4638b96bf8410b2576831f9ee949ac6a22969a3b /net
parent7c0343cfad781414997cd713ae5ae4c9cc1d1eb3 (diff)
downloadchromium_src-80287f81d71b244a59daff479d753eac08cbdfb3.zip
chromium_src-80287f81d71b244a59daff479d753eac08cbdfb3.tar.gz
chromium_src-80287f81d71b244a59daff479d753eac08cbdfb3.tar.bz2
Clear the URLRequest.proxy_server_ field when restarting a request.
Previously, the proxy_server_ field of a URLRequest was not cleared when restarting a request, so it would sometimes have a stale value. When using the Data Reduction Proxy, this could cause a bypass-and-retry loop in certain cases when the stale proxy_server_ value is a Data Reduction Proxy, such as when a redirect received through the DRP is for a location that is subject to HSTS. BUG=483505 Review URL: https://codereview.chromium.org/1175193002 Cr-Commit-Position: refs/heads/master@{#334002}
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index aede8c2..254f657 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -874,6 +874,7 @@ void URLRequest::PrepareToRestart() {
status_ = URLRequestStatus();
is_pending_ = false;
+ proxy_server_ = HostPortPair();
}
void URLRequest::OrphanJob() {