Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: net/test/embedded_test_server/http_request.cc

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_controller.cc ('k') | net/test/embedded_test_server/request_handler_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/embedded_test_server/http_request.cc
diff --git a/net/test/embedded_test_server/http_request.cc b/net/test/embedded_test_server/http_request.cc
index 2c247c614a9ddbf09123416b94e2b47ee92d4185..66ebd2c1f959f96aebf925895c3af4a96ab67212 100644
--- a/net/test/embedded_test_server/http_request.cc
+++ b/net/test/embedded_test_server/http_request.cc
@@ -109,7 +109,7 @@ HttpRequestParser::ParseResult HttpRequestParser::ParseHeaders() {
// know) anything about the server address.
GURL url(header_line_tokens[1]);
if (url.is_valid()) {
- http_request_->relative_url = url.path();
+ http_request_->relative_url = url.path().as_string();
} else if (header_line_tokens[1][0] == '/') {
http_request_->relative_url = header_line_tokens[1];
} else {
« no previous file with comments | « net/http/http_auth_controller.cc ('k') | net/test/embedded_test_server/request_handler_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698