summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_http_stream.cc
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 02:35:35 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 02:35:35 +0000
commit6380788c0656de45dbec7589148a69dd4f996bb9 (patch)
tree02371488c9633e5920c7ac605a781809bd772625 /net/spdy/spdy_http_stream.cc
parent8db2b8493a35e2318bd47a6be52df88079d0a976 (diff)
downloadchromium_src-6380788c0656de45dbec7589148a69dd4f996bb9.zip
chromium_src-6380788c0656de45dbec7589148a69dd4f996bb9.tar.gz
chromium_src-6380788c0656de45dbec7589148a69dd4f996bb9.tar.bz2
Use relative instead of absolute URIs in SPDY requests
BUG=50549 TEST=existing Review URL: http://codereview.chromium.org/3035037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_http_stream.cc')
-rw-r--r--net/spdy/spdy_http_stream.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc
index 76358aa..b723b4e9 100644
--- a/net/spdy/spdy_http_stream.cc
+++ b/net/spdy/spdy_http_stream.cc
@@ -12,6 +12,7 @@
#include "base/message_loop.h"
#include "base/string_util.h"
#include "net/base/load_flags.h"
+#include "net/base/net_util.h"
#include "net/http/http_request_info.h"
#include "net/http/http_response_info.h"
#include "net/http/http_util.h"
@@ -111,7 +112,9 @@ void CreateSpdyHeadersFromHttpRequest(
// TODO(mbelshe): Add authentication headers here.
(*headers)["method"] = info.method;
- (*headers)["url"] = net::HttpUtil::SpecForRequest(info.url);
+ (*headers)["url"] = net::HttpUtil::PathForRequest(info.url);
+ (*headers)["host"] = net::GetHostAndOptionalPort(info.url);
+ (*headers)["scheme"] = info.url.scheme();
(*headers)["version"] = kHttpProtocolVersion;
if (!info.referrer.is_empty())
(*headers)["referer"] = info.referrer.spec();