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

Unified Diff: net/base/data_url.cc

Issue 1986053003: Remove default charset of dataURL request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/data_url.cc
diff --git a/net/base/data_url.cc b/net/base/data_url.cc
index 40911850ff39e1dac100a7ee5a4fa2eaedce6e43..b9d89bfa4d5f5e2151ef45d054640d2c35173ec2 100644
--- a/net/base/data_url.cc
+++ b/net/base/data_url.cc
@@ -77,10 +77,7 @@ bool DataURL::Parse(const GURL& url, std::string* mime_type,
// value is invalid. For this case, we don't respect |charset| but force it
// set to "US-ASCII".
mime_type->assign("text/plain");
- charset->assign("US-ASCII");
}
- if (charset->empty())
- charset->assign("US-ASCII");
// The caller may not be interested in receiving the data.
if (!data)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698