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

Unified Diff: net/url_request/url_request_http_job.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/url_request/url_request_ftp_job_unittest.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index caf344c325363afafb7dd6ed1fa8c42306d93e41..aa44ce45b01dffd28a44b8e77f2423d27f3cb87d 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -484,8 +484,8 @@ void URLRequestHttpJob::AddExtraHeaders() {
}
if (http_user_agent_settings_) {
- // Only add default Accept-Language and Accept-Charset if the request
- // didn't have them specified.
+ // Only add default Accept-Language if the request didn't have it
+ // specified.
std::string accept_language =
http_user_agent_settings_->GetAcceptLanguage();
if (!accept_language.empty()) {
@@ -493,12 +493,6 @@ void URLRequestHttpJob::AddExtraHeaders() {
HttpRequestHeaders::kAcceptLanguage,
accept_language);
}
- std::string accept_charset = http_user_agent_settings_->GetAcceptCharset();
- if (!accept_charset.empty()) {
- request_info_.extra_headers.SetHeaderIfMissing(
- HttpRequestHeaders::kAcceptCharset,
- accept_charset);
- }
}
}
« no previous file with comments | « net/url_request/url_request_ftp_job_unittest.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698