From ab13be73fd989ce9deec6a6b838257422f1767c9 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sun, 21 Aug 2022 12:47:40 +0800 Subject: [PATCH] remove iframe content-type detection --- iframeschemehandler.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/iframeschemehandler.cpp b/iframeschemehandler.cpp index 1476299b..63d6d081 100644 --- a/iframeschemehandler.cpp +++ b/iframeschemehandler.cpp @@ -20,9 +20,6 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) auto finishAction = [ = ]() -> void { QByteArray contentType = "text/html;charset=UTF-8"; - auto contentTypeHeader = reply->header( QNetworkRequest::ContentTypeHeader ); - if( contentTypeHeader.isValid() ) - contentType = contentTypeHeader.toByteArray(); QBuffer * buffer = new QBuffer( requestJob ); // Handle reply data