| Index: net/http/http_stream_parser.cc
|
| diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
|
| index 0a65fda598a857ae35abdb7e05a87bdec5a6adae..f8e5c0f00f44866245c2a6ccb9752544e457784d 100644
|
| --- a/net/http/http_stream_parser.cc
|
| +++ b/net/http/http_stream_parser.cc
|
| @@ -380,6 +380,12 @@ int HttpStreamParser::ReadResponseBody(IOBuffer* buf, int buf_len,
|
| user_read_buf_len_ = buf_len;
|
| io_state_ = STATE_READ_BODY;
|
|
|
| + // Invalidate HttpRequestInfo pointer. This is to allow the stream to be
|
| + // shared across multiple consumers.
|
| + // It is safe to reset it at this point since request_->upload_data_stream
|
| + // is also not needed anymore.
|
| + request_ = nullptr;
|
| +
|
| int result = DoLoop(OK);
|
| if (result == ERR_IO_PENDING)
|
| callback_ = callback;
|
|
|