diff options
Diffstat (limited to 'src/network/access/qnetworkreplyhttpimpl.cpp')
-rw-r--r-- | src/network/access/qnetworkreplyhttpimpl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyhttpimpl.cpp b/src/network/access/qnetworkreplyhttpimpl.cpp index 5ba11333bf..921b482d10 100644 --- a/src/network/access/qnetworkreplyhttpimpl.cpp +++ b/src/network/access/qnetworkreplyhttpimpl.cpp @@ -774,6 +774,14 @@ void QNetworkReplyHttpImplPrivate::postRequest(const QNetworkRequest &newHttpReq if (request.attribute(QNetworkRequest::EmitAllUploadProgressSignalsAttribute).toBool()) emitAllUploadProgressSignals = true; + // For internal use/testing + auto ignoreDownloadRatio = + request.attribute(QNetworkRequest::Attribute(QNetworkRequest::User - 1)); + if (!ignoreDownloadRatio.isNull() && ignoreDownloadRatio.canConvert<QByteArray>() + && ignoreDownloadRatio.toByteArray() == "__qdecompresshelper_ignore_download_ratio") { + httpRequest.setIgnoreDecompressionRatio(true); + } + httpRequest.setPeerVerifyName(newHttpRequest.peerVerifyName()); // Create the HTTP thread delegate |