| Index: net/http/http_network_transaction.cc
|
| ===================================================================
|
| --- net/http/http_network_transaction.cc (revision 12593)
|
| +++ net/http/http_network_transaction.cc (working copy)
|
| @@ -670,7 +670,8 @@
|
| request_headers_bytes_sent_ += result;
|
| if (request_headers_bytes_sent_ < request_headers_.size()) {
|
| next_state_ = STATE_WRITE_HEADERS;
|
| - } else if (!establishing_tunnel_ && request_->upload_data) {
|
| + } else if (!establishing_tunnel_ && request_body_stream_.get() &&
|
| + request_body_stream_->size()) {
|
| next_state_ = STATE_WRITE_BODY;
|
| } else {
|
| next_state_ = STATE_READ_HEADERS;
|
| @@ -681,8 +682,8 @@
|
| int HttpNetworkTransaction::DoWriteBody() {
|
| next_state_ = STATE_WRITE_BODY_COMPLETE;
|
|
|
| - DCHECK(request_->upload_data);
|
| DCHECK(request_body_stream_.get());
|
| + DCHECK(request_body_stream_->size());
|
|
|
| const char* buf = request_body_stream_->buf();
|
| int buf_len = static_cast<int>(request_body_stream_->buf_len());
|
|
|