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

Unified Diff: content/browser/frame_host/navigation_request.cc

Issue 1839473002: Centralize the setting of Accept headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index 77f5ebe128a104322045be8a43fd4dc7d63d88d5..74d61c53a3090d582fd6911835bf5f67d81173c0 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -79,8 +79,6 @@ scoped_ptr<NavigationRequest> NavigationRequest::CreateBrowserInitiated(
headers.AddHeadersFromString(entry.extra_headers());
headers.SetHeaderIfMissing(net::HttpRequestHeaders::kUserAgent,
GetContentClient()->GetUserAgent());
- // TODO(clamy): match what blink is doing with accept headers.
- headers.SetHeaderIfMissing("Accept", "*/*");
// Fill POST data from the browser in the request body.
scoped_refptr<ResourceRequestBody> request_body;

Powered by Google App Engine
This is Rietveld 408576698