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..c4944fbdc486beeb57203e95865f209e9103713d 100644 |
--- a/net/quic/quic_http_stream.cc |
+++ b/net/quic/quic_http_stream.cc |
@@ -449,6 +449,10 @@ int QuicHttpStream::DoSendHeadersComplete(int rv) { |
if (rv < 0) |
return rv; |
+ // If the stream is already closed, don't read the request the body. |
+ if (!stream_) |
+ return response_status_; |
+ |
next_state_ = request_body_stream_ ? STATE_READ_REQUEST_BODY : STATE_OPEN; |
return OK; |