| Index: content/browser/loader/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| index e073710420a18414dfcb592fe53119bd4d9e6246..ef7e1b4b90695986743af70481bc42a5af4dadf9 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -745,8 +745,10 @@ ResourceDispatcherHostImpl::MaybeInterceptAsStream(net::URLRequest* request,
|
| // Make a copy of the response headers so it is safe to pass across threads;
|
| // the old handler (AsyncResourceHandler) may modify it in parallel via the
|
| // ResourceDispatcherHostDelegate.
|
| - stream_info->response_headers =
|
| - new net::HttpResponseHeaders(response->head.headers->raw_headers());
|
| + if (response->head.headers.get()) {
|
| + stream_info->response_headers =
|
| + new net::HttpResponseHeaders(response->head.headers->raw_headers());
|
| + }
|
| delegate_->OnStreamCreated(request, stream_info.Pass());
|
| return handler.PassAs<ResourceHandler>();
|
| }
|
|
|