Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index f4a1764606c21c284b86b1f78f1e0c49e95a2688..e24d104958ac5e423bed4d270eb2d801d205759b 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -302,11 +302,6 @@ namespace content { |
namespace { |
-const char kDefaultAcceptHeader[] = |
- "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/" |
- "*;q=0.8"; |
-const char kAcceptHeader[] = "Accept"; |
- |
const size_t kExtraCharsBeforeAndAfterSelection = 100; |
typedef std::map<int, RenderFrameImpl*> RoutingIDFrameMap; |
@@ -3758,15 +3753,6 @@ void RenderFrameImpl::willSendRequest( |
stream_override = old_extra_data->TakeStreamOverrideOwnership(); |
} |
- // Add the default accept header for frame request if it has not been set |
- // already. |
- if ((request.getFrameType() == blink::WebURLRequest::FrameTypeTopLevel || |
- request.getFrameType() == blink::WebURLRequest::FrameTypeNested) && |
- request.httpHeaderField(WebString::fromUTF8(kAcceptHeader)).isEmpty()) { |
- request.setHTTPHeaderField(WebString::fromUTF8(kAcceptHeader), |
- WebString::fromUTF8(kDefaultAcceptHeader)); |
- } |
- |
// Add an empty HTTP origin header for non GET methods if none is currently |
// present. |
request.addHTTPOriginIfNeeded(WebString()); |