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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

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: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index b80847b255d82a8424629bd70240be39f5401bfa..ce32b01a2a0c0d8cff144890a98f307d171a92f1 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -205,8 +205,6 @@ void Resource::load(ResourceFetcher* fetcher)
m_status = Pending;
ResourceRequest& request(m_revalidatingRequest.isNull() ? m_resourceRequest : m_revalidatingRequest);
- if (!accept().isEmpty())
- request.setHTTPAccept(accept());
request.setAllowStoredCredentials(m_options.allowCredentials == AllowStoredCredentials);
// FIXME: It's unfortunate that the cache layer and below get to know anything about fragment identifiers.

Powered by Google App Engine
This is Rietveld 408576698