From edd3b0a50912b04fe9d7e5dbf6f9639144cc09e4 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Tue, 24 Nov 2009 18:56:36 +0000 Subject: 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 --- net/flip/flip_stream.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net/flip/flip_stream.cc') 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); -- cgit v1.1