diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 15:33:52 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-20 15:33:52 +0000 |
commit | 7213e7cddc25d53822bd7bcad1e56b700ed0723a (patch) | |
tree | f2ad70306305b8baf875f8220eb33722ce9e9854 /net/spdy/spdy_http_stream.cc | |
parent | 54e6e79cce665b06c965d58852f0c6362b9ba567 (diff) | |
download | chromium_src-7213e7cddc25d53822bd7bcad1e56b700ed0723a.zip chromium_src-7213e7cddc25d53822bd7bcad1e56b700ed0723a.tar.gz chromium_src-7213e7cddc25d53822bd7bcad1e56b700ed0723a.tar.bz2 |
Move BuildRequestHeaders from HttpNetworkTransaction to
HttpUtil::BuildRequestHeaders, so that it can be used
directly by SpdyHttpStream, removing the code duplication.
Strip proxy-connection header from SPDY requests to be consistent with Connection header.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3831005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_http_stream.cc')
-rw-r--r-- | net/spdy/spdy_http_stream.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc index 0e3962e..6fede6c 100644 --- a/net/spdy/spdy_http_stream.cc +++ b/net/spdy/spdy_http_stream.cc @@ -148,8 +148,12 @@ int SpdyHttpStream::SendRequest(const std::string& /*headers_string*/, stream_->SetDelegate(this); + HttpRequestHeaders request_headers; + HttpUtil::BuildRequestHeaders(request_info_, request_body, NULL, false, false, + !direct_, &request_headers); linked_ptr<spdy::SpdyHeaderBlock> headers(new spdy::SpdyHeaderBlock); - CreateSpdyHeadersFromHttpRequest(*request_info_, headers.get(), direct_); + CreateSpdyHeadersFromHttpRequest(*request_info_, request_headers, + headers.get(), direct_); stream_->set_spdy_headers(headers); stream_->SetRequestTime(request_time); |