diff options
Diffstat (limited to 'content/browser/loader')
-rw-r--r-- | content/browser/loader/resource_dispatcher_host_impl.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc index 1199957..9234315 100644 --- a/content/browser/loader/resource_dispatcher_host_impl.cc +++ b/content/browser/loader/resource_dispatcher_host_impl.cc @@ -610,9 +610,6 @@ ResourceDispatcherHostImpl::MaybeInterceptAsStream(net::URLRequest* request, ResourceResponse* response) { ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request); const std::string& mime_type = response->head.mime_type; - std::string response_headers; - if (response->head.headers) - response->head.headers->GetNormalizedHeaders(&response_headers); GURL origin; std::string target_id; @@ -639,8 +636,10 @@ ResourceDispatcherHostImpl::MaybeInterceptAsStream(net::URLRequest* request, info->GetChildID(), info->GetRouteID(), target_id, - handler->stream()->CreateHandle(request->url(), mime_type, - response_headers), + handler->stream()->CreateHandle( + request->url(), + mime_type, + response->head.headers), request->GetExpectedContentSize()); return handler.PassAs<ResourceHandler>(); } |