diff --git a/src/lib/network/networkmanager.cpp b/src/lib/network/networkmanager.cpp index 848f3c7c6..21c2ca403 100644 --- a/src/lib/network/networkmanager.cpp +++ b/src/lib/network/networkmanager.cpp @@ -464,6 +464,7 @@ void NetworkManager::proxyAuthentication(const QNetworkProxy &proxy, QAuthentica QNetworkReply* NetworkManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &request, QIODevice* outgoingData) { + if (op == PostOperation && outgoingData) { QByteArray outgoingDataByteArray = outgoingData->peek(1024 * 1024); mApp->autoFill()->post(request, outgoingDataByteArray); @@ -514,10 +515,8 @@ QNetworkReply* NetworkManager::createRequest(QNetworkAccessManager::Operation op req.setRawHeader("Accept-Language", m_acceptLanguage); - req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true); -// if (req.attribute(QNetworkRequest::CacheLoadControlAttribute).toInt() == QNetworkRequest::PreferNetwork) { -// req.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache); -// } + // #830: Disabling HttpPipeling fixes issue with loading HTML5 videos on YouTube + //req.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true); // Adblock if (op == QNetworkAccessManager::GetOperation) { @@ -530,8 +529,7 @@ QNetworkReply* NetworkManager::createRequest(QNetworkAccessManager::Operation op } } - reply = QNetworkAccessManager::createRequest(op, req, outgoingData); - return reply; + return QNetworkAccessManager::createRequest(op, req, outgoingData); } void NetworkManager::removeLocalCertificate(const QSslCertificate &cert)