Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1564)

Unified Diff: net/http/http_network_transaction.cc

Issue 42681: After r12485, every POST request has an UploadData,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698