Index: Source/core/loader/DocumentLoader.cpp |
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp |
index ddefb8e318a3b8427c3a08ef3a7376ea7327c2d2..6558e1c61f808c225919dd9b123ec3ba332937ec 100644 |
--- a/Source/core/loader/DocumentLoader.cpp |
+++ b/Source/core/loader/DocumentLoader.cpp |
@@ -569,7 +569,7 @@ void DocumentLoader::ensureWriter(const String& mimeType, const KURL& overriding |
if (m_writer) |
return; |
- String encoding = overrideEncoding().isNull() ? response().textEncodingName().impl() : overrideEncoding(); |
+ const String& encoding = overrideEncoding().isNull() ? response().textEncodingName().string() : overrideEncoding(); |
m_writer = createWriterFor(m_frame, 0, requestURL(), mimeType, encoding, false, false); |
m_writer->setDocumentWasLoadedAsPartOfNavigation(); |
// This should be set before receivedFirstData(). |