fix:website dictionary display when http status!=200

This commit is contained in:
Xiao YiFang 2022-09-11 14:25:27 +08:00
parent c171d5b8bb
commit 0676845328

View file

@ -24,13 +24,6 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
QBuffer * buffer = new QBuffer( requestJob );
// Handle reply data
if( reply->error() != QNetworkReply::NoError )
{
QString emptyHtml = QString( "<html><body>%1</body></html>" ).arg( reply->errorString() );
buffer->setData( emptyHtml.toUtf8() );
requestJob->reply( contentType, buffer );
return;
}
QByteArray replyData = reply->readAll();
QString articleString;