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

Unified Diff: Source/core/loader/FrameFetchContext.cpp

Issue 315073005: Remove the setting of default accept header for main resources (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index fa2d09f1637d988c985ebb7b46355737f4b31d9a..b5dd401117f5dea8ba03bdc88444bbeb2e7237dd 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -45,8 +45,6 @@
namespace WebCore {
-static const char defaultAcceptHeader[] = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8";
-
FrameFetchContext::FrameFetchContext(LocalFrame* frame)
: m_frame(frame)
{
@@ -91,9 +89,6 @@ void FrameFetchContext::addAdditionalRequestHeaders(Document* document, Resource
m_frame->loader().applyUserAgent(request);
- if (isMainResource)
- request.setHTTPAccept(defaultAcceptHeader);
-
// Default to sending an empty Origin header if one hasn't been set yet.
FrameLoader::addHTTPOriginIfNeeded(request, nullAtom);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698