diff options
-rw-r--r-- | src/network/webtask.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/webtask.cpp b/src/network/webtask.cpp index 8ddcf4b866..2fb4729083 100644 --- a/src/network/webtask.cpp +++ b/src/network/webtask.cpp @@ -73,8 +73,10 @@ QMimeType WebTask::readContentType( const QNetworkReply& reply) { const QVariant contentTypeHeader = reply.header(QNetworkRequest::ContentTypeHeader); if (!contentTypeHeader.isValid() || contentTypeHeader.isNull()) { - kLogger.warning() - << "Missing content type header"; + if (reply.isReadable() && reply.bytesAvailable() > 0) { + kLogger.warning() + << "Missing content type header"; + } return QMimeType(); } const QString contentTypeString = contentTypeHeader.toString(); |