summaryrefslogtreecommitdiffstats
path: root/net/flip/flip_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/flip/flip_stream.cc')
-rwxr-xr-xnet/flip/flip_stream.cc3
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);