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 35dbbb1d16c6cbac47105b613c8fda3206b44dcf..4637fcd991b1d8ba351fea1930f59342564ffe10 100644 |
--- a/net/url_request/url_request_job.cc |
+++ b/net/url_request/url_request_job.cc |
@@ -331,19 +331,6 @@ void URLRequestJob::NotifyHeadersComplete() { |
// so it does not treat being stopped as an error. |
DoneReadingRedirectResponse(); |
- const GURL& url = request_->url(); |
mmenke
2014/03/27 14:41:46
This breaks URLRequestRedirectJobs, I believe. Or
|
- |
- // 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() && !new_location.has_ref()) { |
- GURL::Replacements replacements; |
- // Reference the |ref| directly out of the original URL to avoid a |
- // malloc. |
- replacements.SetRef(url.spec().data(), |
- url.parsed_for_possibly_invalid_spec().ref); |
- new_location = new_location.ReplaceComponents(replacements); |
- } |
- |
bool defer_redirect = false; |
request_->NotifyReceivedRedirect(new_location, &defer_redirect); |