Compile after latest WebKit changes and don't depend on
[WebKit-https.git] / WebCore / platform / network / qt / ResourceHandleQt.cpp
index c0bea838d47f16a1850dacb28e5d0d54759e966f..4382b04255cd3be632c64f9ad5d7f68bc6df8bab 100644 (file)
@@ -72,12 +72,12 @@ void ResourceHandle::cancel()
 
 QString ResourceHandle::extractCharsetFromHeaders(QString headers) const
 {
-    int pos = headers.find("content-type:", 0, false);
+    int pos = headers.indexOf("content-type:", 0, Qt::CaseInsensitive);
 
     if (pos > -1) {
         pos += 13;
 
-        int index = headers.find('\n', pos);
+        int index = headers.indexOf('\n', pos);
         QString type = headers.mid(pos, index - pos);
         index = type.indexOf(';');