diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 18:56:36 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 18:56:36 +0000 |
commit | edd3b0a50912b04fe9d7e5dbf6f9639144cc09e4 (patch) | |
tree | 3e1cf0eeb31488646b10548ce84e00a80de7ed50 /net/flip/flip_stream.cc | |
parent | ffe87b25774f06f8848306ca9313294d9602b43c (diff) | |
download | chromium_src-edd3b0a50912b04fe9d7e5dbf6f9639144cc09e4.zip chromium_src-edd3b0a50912b04fe9d7e5dbf6f9639144cc09e4.tar.gz chromium_src-edd3b0a50912b04fe9d7e5dbf6f9639144cc09e4.tar.bz2 |
Flip: Handle empty post.
Review URL: http://codereview.chromium.org/437039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/flip/flip_stream.cc')
-rwxr-xr-x | net/flip/flip_stream.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/flip/flip_stream.cc b/net/flip/flip_stream.cc index b07f5bf..b9d8cc4 100755 --- a/net/flip/flip_stream.cc +++ b/net/flip/flip_stream.cc @@ -118,8 +118,7 @@ int FlipStream::SendRequest(UploadDataStream* upload_data, CHECK(callback); CHECK(!cancelled_); - // TODO(mbelshe): rethink this UploadDataStream wrapper. - if (upload_data) + if (upload_data && upload_data->size()) request_body_stream_.reset(upload_data); DCHECK_EQ(io_state_, STATE_NONE); |