mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
remove iframe content-type detection
This commit is contained in:
parent
7f39be4fef
commit
ab13be73fd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue