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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2355023002: Preserving Content-Type header from http request in OpenURL path. (Closed)
Patch Set: Rebasing... Created 4 years, 3 months 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: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 2ef11d1dada676638d6f0414d88477382efac90f..7d081314ead49ceec076f937a3a540fd9f32add3 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -532,7 +532,8 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
referrer_policy_ = request.referrerPolicy();
resource_request->referrer_policy = referrer_policy_;
- resource_request->headers = GetWebURLRequestHeaders(request);
+ resource_request->headers =
+ GetWebURLRequestHeadersForResourceRequest(request);
resource_request->load_flags = GetLoadFlagsForWebURLRequest(request);
// origin_pid only needs to be non-zero if the request originates outside
// the render process, so we can use requestorProcessID even for requests

Powered by Google App Engine
This is Rietveld 408576698