mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
parent
85429d79a5
commit
2baffb0628
|
@ -98,7 +98,12 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
|
||||||
else
|
else
|
||||||
buffer->setData(articleString.toUtf8());
|
buffer->setData(articleString.toUtf8());
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
|
requestJob->reply(contentTypeV.toByteArray() , buffer );
|
||||||
|
#else
|
||||||
|
//use "text/html;charset=utf-8" will make the response html text rendered on the webpage?
|
||||||
requestJob->reply(contentType , buffer );
|
requestJob->reply(contentType , buffer );
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
connect( reply, &QNetworkReply::finished, requestJob, finishAction );
|
connect( reply, &QNetworkReply::finished, requestJob, finishAction );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue