summaryrefslogtreecommitdiffstats
path: root/chrome_frame/urlmon_url_request.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-02 02:45:55 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-02 02:45:55 +0000
commitb7cb6591fa16a6e604c59df15f1b6c6c226e360f (patch)
tree75efafcd47c65b7dd0e05e2eb423bc3eff6f9578 /chrome_frame/urlmon_url_request.cc
parentc825c491e40addd0991f32647c57f29f15922ee7 (diff)
downloadchromium_src-b7cb6591fa16a6e604c59df15f1b6c6c226e360f.zip
chromium_src-b7cb6591fa16a6e604c59df15f1b6c6c226e360f.tar.gz
chromium_src-b7cb6591fa16a6e604c59df15f1b6c6c226e360f.tar.bz2
Re-enable the Head test.
TEST=Fixes the UrlRequest Head test BUG=none TBR=amit Review URL: http://codereview.chromium.org/1829001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/urlmon_url_request.cc')
-rw-r--r--chrome_frame/urlmon_url_request.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc
index 7f330ab..18b3c39 100644
--- a/chrome_frame/urlmon_url_request.cc
+++ b/chrome_frame/urlmon_url_request.cc
@@ -478,7 +478,9 @@ STDMETHODIMP UrlmonUrlRequest::OnDataAvailable(DWORD flags, DWORD size,
return E_UNEXPECTED;
}
- pending_data_ = read_stream;
+ // Some requests such as HEAD have zero data.
+ if (size > 0)
+ pending_data_ = read_stream;
if (pending_read_size_) {
size_t bytes_copied = SendDataToDelegate(pending_read_size_);