Chromium Code Reviews| Index: net/quic/quic_http_stream.cc |
| diff --git a/net/quic/quic_http_stream.cc b/net/quic/quic_http_stream.cc |
| index 11dc26c64632155ec75a38b6b86f25fbae980e89..8bf4c7a29748180c310c8c934fb16eb02e70daa8 100644 |
| --- a/net/quic/quic_http_stream.cc |
| +++ b/net/quic/quic_http_stream.cc |
| @@ -449,6 +449,11 @@ int QuicHttpStream::DoSendHeadersComplete(int rv) { |
| if (rv < 0) |
| return rv; |
| + if (!stream_) { |
| + // If the stream is already closed, don't request the body. |
|
Ryan Hamilton
2016/01/15 05:02:34
nit: I'd move this above the if and remove the {}s
ramant (doing other things)
2016/01/15 18:03:05
Done.
|
| + return response_status_; |
| + } |
| + |
| next_state_ = request_body_stream_ ? STATE_READ_REQUEST_BODY : STATE_OPEN; |
| return OK; |