summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_http_utils.cc
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 17:53:22 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 17:53:22 +0000
commit0c9bf87fe0b87849105fc7a2ea16280e48ee9089 (patch)
tree8858b7c1f6c1071b2a0f93a92c72f08dcb0ad96d /net/spdy/spdy_http_utils.cc
parent27030d8d5d54002e1baaf19fefd909ebfb82de40 (diff)
downloadchromium_src-0c9bf87fe0b87849105fc7a2ea16280e48ee9089.zip
chromium_src-0c9bf87fe0b87849105fc7a2ea16280e48ee9089.tar.gz
chromium_src-0c9bf87fe0b87849105fc7a2ea16280e48ee9089.tar.bz2
Add chunked uploads support to SPDY
As part of this, I had to move the chunked encoding part from UploadData::Element::SetChunk to HttpStreamParser::DoSendBody as SPDY doesn't have this encoded format and UploadData needs to serve both. BUG=none TEST=net_unittests (2 new tests added) Committed and rolled back: http://src.chromium.org/viewvc/chrome?view=rev&revision=76892 Review URL: http://codereview.chromium.org/6292013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_http_utils.cc')
-rw-r--r--net/spdy/spdy_http_utils.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/spdy/spdy_http_utils.cc b/net/spdy/spdy_http_utils.cc
index bf7376a..a3b7e54 100644
--- a/net/spdy/spdy_http_utils.cc
+++ b/net/spdy/spdy_http_utils.cc
@@ -83,8 +83,10 @@ void CreateSpdyHeadersFromHttpRequest(const HttpRequestInfo& info,
HttpRequestHeaders::Iterator it(request_headers);
while (it.GetNext()) {
std::string name = StringToLowerASCII(it.name());
- if (name == "connection" || name == "proxy-connection")
+ if (name == "connection" || name == "proxy-connection" ||
+ name == "transfer-encoding") {
continue;
+ }
if (headers->find(name) == headers->end()) {
(*headers)[name] = it.value();
} else {