| Index: net/spdy/spdy_stream.cc
|
| diff --git a/net/spdy/spdy_stream.cc b/net/spdy/spdy_stream.cc
|
| index c3b06868bafbe302f189fc0596c1d5f5fe150b9c..2698603fe78e1007cc7d9d19ecfd70d89d46c27a 100644
|
| --- a/net/spdy/spdy_stream.cc
|
| +++ b/net/spdy/spdy_stream.cc
|
| @@ -519,6 +519,9 @@ int SpdyStream::SendRequest(bool has_upload_data) {
|
|
|
| int SpdyStream::WriteStreamData(IOBuffer* data, int length,
|
| SpdyDataFlags flags) {
|
| + // Until the headers have been completely sent, we can not be sure
|
| + // that our stream_id is correct.
|
| + DCHECK_GT(io_state_, STATE_SEND_HEADERS_COMPLETE);
|
| return session_->WriteStreamData(stream_id_, data, length, flags);
|
| }
|
|
|
|
|