mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-01 04:18:46 +01:00
Restore expected Accept-Language request header order (fixes issue #2796)
This commit is contained in:
parent
9b9a9f359e
commit
c8d0813669
@ -676,6 +676,11 @@ class InterceptedRequestHandlerWrapper : public InterceptedRequestHandler {
|
||||
resource_response = CreateResourceResponse(id, resource_handler);
|
||||
DCHECK(resource_response);
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user