OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/http/http_request_headers.h" | 5 #include "net/http/http_request_headers.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/stringprintf.h" |
8 #include "base/string_split.h" | 9 #include "base/string_split.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "net/http/http_util.h" | 11 #include "net/http/http_util.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 const char HttpRequestHeaders::kGetMethod[] = "GET"; | 15 const char HttpRequestHeaders::kGetMethod[] = "GET"; |
15 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; | 16 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; |
16 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; | 17 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; |
17 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; | 18 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 it != headers_.end(); ++it) { | 198 it != headers_.end(); ++it) { |
198 if (key.length() == it->key.length() && | 199 if (key.length() == it->key.length() && |
199 !base::strncasecmp(key.data(), it->key.data(), key.length())) | 200 !base::strncasecmp(key.data(), it->key.data(), key.length())) |
200 return it; | 201 return it; |
201 } | 202 } |
202 | 203 |
203 return headers_.end(); | 204 return headers_.end(); |
204 } | 205 } |
205 | 206 |
206 } // namespace net | 207 } // namespace net |
OLD | NEW |