Restore expected Accept-Language request header order (fixes issue #2796)

This commit is contained in:
Marshall Greenblatt 2019-11-05 15:29:32 -05:00
parent 9b9a9f359e
commit c8d0813669
1 changed files with 5 additions and 0 deletions

View File

@ -676,6 +676,11 @@ class InterceptedRequestHandlerWrapper : public InterceptedRequestHandler {
resource_response = CreateResourceResponse(id, resource_handler); resource_response = CreateResourceResponse(id, resource_handler);
DCHECK(resource_response); DCHECK(resource_response);
state->was_custom_handled_ = true; state->was_custom_handled_ = true;
} else {
// The request will be handled by the NetworkService. Remove the
// "Accept-Language" header here so that it can be re-added in
// URLRequestHttpJob::AddExtraHeaders with correct ordering applied.
request->headers.RemoveHeader(net::HttpRequestHeaders::kAcceptLanguage);
} }
// Continue the request. // Continue the request.