diff options
-rw-r--r-- | mojo/services/network/http_connection_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mojo/services/network/http_connection_impl.cc b/mojo/services/network/http_connection_impl.cc index be306cd..0831d1d 100644 --- a/mojo/services/network/http_connection_impl.cc +++ b/mojo/services/network/http_connection_impl.cc @@ -141,8 +141,9 @@ void HttpConnectionImpl::OnReceivedHttpRequest( if (response->body.is_valid()) { SimpleDataPipeReader* reader = new SimpleDataPipeReader; response_body_readers_.insert(reader); + ScopedDataPipeConsumerHandle body = response->body.Pass(); reader->Start( - response->body.Pass(), + body.Pass(), base::Bind(&HttpConnectionImpl::OnFinishedReadingResponseBody, base::Unretained(this), base::Passed(&response))); } else { |