Index: net/http/http_basic_state.cc |
diff --git a/net/http/http_basic_state.cc b/net/http/http_basic_state.cc |
index 2b173b0897b401d99bc890822dba8a161ec17502..060f2fe27fb061269a9aa6a2b3bf54468037f7a3 100644 |
--- a/net/http/http_basic_state.cc |
+++ b/net/http/http_basic_state.cc |
@@ -50,8 +50,8 @@ std::string HttpBasicState::GenerateRequestLine() const { |
const size_t kSuffixLen = arraysize(kSuffix) - 1; |
DCHECK(request_info_); |
const GURL& url = request_info_->url; |
- const std::string path = using_proxy_ ? HttpUtil::SpecForRequest(url) |
- : HttpUtil::PathForRequest(url); |
+ const std::string path = |
+ using_proxy_ ? HttpUtil::SpecForRequest(url) : url.PathForRequest(); |
// Don't use StringPrintf for concatenation because it is very inefficient. |
std::string request_line; |
const size_t expected_size = request_info_->method.size() + 1 + path.size() + |