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

Unified Diff: chrome/browser/automation/url_request_automation_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 | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/url_request_automation_job.cc
diff --git a/chrome/browser/automation/url_request_automation_job.cc b/chrome/browser/automation/url_request_automation_job.cc
index d68cf68039a93362b66c8798b4ccd4760d7841aa..f10bce4ed7768b2d6f1fb0ef56ab8c87b85f7ded 100644
--- a/chrome/browser/automation/url_request_automation_job.cc
+++ b/chrome/browser/automation/url_request_automation_job.cc
@@ -460,8 +460,7 @@ void URLRequestAutomationJob::StartAsync() {
for (size_t i = 0; i < arraysize(kFilteredHeaderStrings); ++i)
new_request_headers.RemoveHeader(kFilteredHeaderStrings[i]);
- // 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.
if (!new_request_headers.HasHeader(
net::HttpRequestHeaders::kAcceptLanguage) &&
http_user_agent_settings_) {
@@ -472,15 +471,6 @@ void URLRequestAutomationJob::StartAsync() {
accept_language);
}
}
- if (!new_request_headers.HasHeader(
- net::HttpRequestHeaders::kAcceptCharset) &&
- http_user_agent_settings_) {
- std::string accept_charset = http_user_agent_settings_->GetAcceptCharset();
- if (!accept_charset.empty()) {
- new_request_headers.SetHeader(net::HttpRequestHeaders::kAcceptCharset,
- accept_charset);
- }
- }
// Ensure that we do not send username and password fields in the referrer.
GURL referrer(request_->GetSanitizedReferrer());
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698