From 06768453289095f45672e0812f4817af7dfa16cf Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sun, 11 Sep 2022 14:25:27 +0800 Subject: [PATCH] fix:website dictionary display when http status!=200 --- iframeschemehandler.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/iframeschemehandler.cpp b/iframeschemehandler.cpp index d9958aab..cab5c7f9 100644 --- a/iframeschemehandler.cpp +++ b/iframeschemehandler.cpp @@ -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( "%1" ).arg( reply->errorString() ); - buffer->setData( emptyHtml.toUtf8() ); - requestJob->reply( contentType, buffer ); - return; - } QByteArray replyData = reply->readAll(); QString articleString;