diff --git a/src/article_netmgr.cc b/src/article_netmgr.cc index ef41dfd20..e34ce8d94 100644 --- a/src/article_netmgr.cc +++ b/src/article_netmgr.cc @@ -365,11 +365,12 @@ qint64 ArticleResourceReply::bytesAvailable() const if ( avail < 0 ) return 0; - if ( !req->isFinished() ) { - return 65536; + qint64 availBytes = avail - alreadyRead + QNetworkReply::bytesAvailable(); + if ( availBytes == 0 && !req->isFinished() ) { + return 10240; } - return avail - alreadyRead + QNetworkReply::bytesAvailable(); + return availBytes; } diff --git a/src/common/globalregex.cc b/src/common/globalregex.cc index bb604abf1..08c11d5c9 100644 --- a/src/common/globalregex.cc +++ b/src/common/globalregex.cc @@ -24,7 +24,8 @@ QRegularExpression Ftx::token( R"((".*?")|([\w\W\+\-]+))", | QRegularExpression::CaseInsensitiveOption ); //mdx -QRegularExpression Mdx::allLinksRe( R"((?:<\s*(a(?:rea)?|img|link|script|source)(?:\s+[^>]+|\s*)>))", +//