| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/server/http_server_request_info.h" | 5 #include "net/server/http_server_request_info.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 HttpServerRequestInfo::HttpServerRequestInfo() {} | 9 HttpServerRequestInfo::HttpServerRequestInfo() {} |
| 10 | 10 |
| 11 HttpServerRequestInfo::~HttpServerRequestInfo() {} | 11 HttpServerRequestInfo::~HttpServerRequestInfo() {} |
| 12 | 12 |
| 13 std::string HttpServerRequestInfo::GetHeaderValue( | 13 std::string HttpServerRequestInfo::GetHeaderValue( |
| 14 const std::string& header_name) const { | 14 const std::string& header_name) const { |
| 15 HttpServerRequestInfo::HeadersMap::const_iterator it = | 15 HttpServerRequestInfo::HeadersMap::const_iterator it = |
| 16 headers.find(header_name); | 16 headers.find(header_name); |
| 17 if (it != headers.end()) | 17 if (it != headers.end()) |
| 18 return it->second; | 18 return it->second; |
| 19 return ""; | 19 return std::string(); |
| 20 } | 20 } |
| 21 | 21 |
| 22 } // namespace net | 22 } // namespace net |
| OLD | NEW |