Index: net/spdy/spdy_http_stream.cc |
=================================================================== |
--- net/spdy/spdy_http_stream.cc (revision 57015) |
+++ net/spdy/spdy_http_stream.cc (working copy) |
@@ -391,7 +391,8 @@ |
// Note that data may be received for a SpdyStream prior to the user calling |
// ReadResponseBody(), therefore user_buffer_ may be NULL. This may often |
// happen for server initiated streams. |
- if (length > 0 && !stream_->closed()) { |
+ DCHECK(!stream_->closed() || stream_->pushed()); |
+ if (length > 0) { |
// Save the received data. |
IOBufferWithSize* io_buffer = new IOBufferWithSize(length); |
memcpy(io_buffer->data(), data, length); |