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

Unified Diff: net/url_request/url_request_job.cc

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Not sure I like this. Created 4 years 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/url_request/url_request_job.cc
diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc
index 33fb9afc4a40c405377fa097bc689572ef71bb6e..26b4d0d3358694996d51b0906b1349f19bd8d127 100644
--- a/net/url_request/url_request_job.cc
+++ b/net/url_request/url_request_job.cc
@@ -264,6 +264,7 @@ bool URLRequestJob::IsRedirectResponse(GURL* location,
*location = request_->url().Resolve(value);
*http_status_code = headers->response_code();
+
return true;
}
@@ -785,6 +786,8 @@ RedirectInfo URLRequestJob::ComputeRedirectInfo(const GURL& location,
redirect_info.new_method =
ComputeMethodForRedirect(request_->method(), http_status_code);
+
+
// Move the reference fragment of the old location to the new one if the
// new one has none. This duplicates mozilla's behavior.
if (url.is_valid() && url.has_ref() && !location.has_ref() &&

Powered by Google App Engine
This is Rietveld 408576698