summaryrefslogtreecommitdiffstats
path: root/net/base/upload_data.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 23:42:42 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 23:42:42 +0000
commit8f170168f091f5199ef91ee138b9b030a8a53817 (patch)
treeeff82afe27264a0cfccfee837a16442a77892f92 /net/base/upload_data.cc
parent87e57e72ad7fefdcb4ee3e952ce27829018c0b66 (diff)
downloadchromium_src-8f170168f091f5199ef91ee138b9b030a8a53817.zip
chromium_src-8f170168f091f5199ef91ee138b9b030a8a53817.tar.gz
chromium_src-8f170168f091f5199ef91ee138b9b030a8a53817.tar.bz2
Add support for chunked encoding in ChromeFrame for POST requests. This fixes the
URLRequestTestHTTP.TestPostChunkedDataBeforeStart net test failure in ChromeFrame. To support chunked encoding we need to marshal the corresponding information in the net::UploadData object to ensure that this object gets reconstructed correctly on the other side (CF). Disabled the URLRequestTestHTTP.TestPostChunkedDataAfterStart for ChromeFrame as this test modifies the UploadData object after it has been marshaled over to CF which we don't support in ChromeFrame. BUG=none TEST=Covered by existing net tests. Review URL: http://codereview.chromium.org/6357017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data.cc')
-rw-r--r--net/base/upload_data.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
index 1dd8bbc..490029c 100644
--- a/net/base/upload_data.cc
+++ b/net/base/upload_data.cc
@@ -159,7 +159,6 @@ void UploadData::set_chunk_callback(ChunkCallback* callback) {
}
uint64 UploadData::GetContentLength() {
- DCHECK(!is_chunked_);
uint64 len = 0;
std::vector<Element>::iterator it = elements_.begin();
for (; it != elements_.end(); ++it)