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

Unified Diff: net/server/http_server_request_info.cc

Issue 7540023: DevTools: no way to remote debug using ToT build as a client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments addressed. Created 9 years, 5 months 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
Index: net/server/http_server_request_info.cc
diff --git a/net/server/http_server_request_info.cc b/net/server/http_server_request_info.cc
index e53a2e26e85b5114716c08b51a6d1ce4d9db585f..eda597a992e6b0b1bb2a5d7b9dc2ec68a069582b 100644
--- a/net/server/http_server_request_info.cc
+++ b/net/server/http_server_request_info.cc
@@ -10,4 +10,13 @@ HttpServerRequestInfo::HttpServerRequestInfo() {}
HttpServerRequestInfo::~HttpServerRequestInfo() {}
+std::string HttpServerRequestInfo::GetHeaderValue(
+ const std::string& header_name) const {
+ HttpServerRequestInfo::HeadersMap::const_iterator it =
+ headers.find(header_name);
+ if (it != headers.end())
+ return it->second;
+ return "";
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698