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

Unified Diff: net/http/http_util.cc

Issue 12463021: Stop sending Accept-Charset HTTP header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r188089) Created 7 years, 9 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
« no previous file with comments | « net/http/http_util.h ('k') | net/http/http_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_util.cc
diff --git a/net/http/http_util.cc b/net/http/http_util.cc
index 7757df45a0be7a7560706e08c4868664df5d52cf..38b288d072030e8fba142c66dff5087f51095382 100644
--- a/net/http/http_util.cc
+++ b/net/http/http_util.cc
@@ -684,16 +684,6 @@ std::string HttpUtil::GenerateAcceptLanguageHeader(
return lang_list_with_q;
}
-std::string HttpUtil::GenerateAcceptCharsetHeader(const std::string& charset) {
- std::string charset_with_q = charset;
- if (LowerCaseEqualsASCII(charset, "utf-8")) {
- charset_with_q += ",*;q=0.5";
- } else {
- charset_with_q += ",utf-8;q=0.7,*;q=0.3";
- }
- return charset_with_q;
-}
-
void HttpUtil::AppendHeaderIfMissing(const char* header_name,
const std::string& header_value,
std::string* headers) {
« no previous file with comments | « net/http/http_util.h ('k') | net/http/http_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698