Index: Source/core/fetch/ResourceFetcher.cpp |
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp |
index cd92d75b11102d71dc77a1a85b3f192f25ca0aad..d1f2da176cca68718baeade61fcff0c5e9ce28ec 100644 |
--- a/Source/core/fetch/ResourceFetcher.cpp |
+++ b/Source/core/fetch/ResourceFetcher.cpp |
@@ -1077,7 +1077,7 @@ void ResourceFetcher::requestPreload(Resource::Type type, FetchRequest& request, |
{ |
String encoding; |
if (type == Resource::Script || type == Resource::CSSStyleSheet) |
- encoding = charset.isEmpty() ? m_document->charset() : charset; |
+ encoding = charset.isEmpty() ? m_document->charset().string() : charset; |
request.setCharset(encoding); |
request.setForPreload(true); |