summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplyhttpimpl.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2021-05-20 14:12:39 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2021-05-31 17:25:20 +0200
commit69982182a394618d4f121d2938d7d76196fe78f6 (patch)
tree32d98bc55cf0fed28d3b23ed15c7d39ee3bc29db /src/network/access/qnetworkreplyhttpimpl.cpp
parent347310eb21facbd03d2168d67d83fdbfd6f6888c (diff)
QNetworkRequest: Add API to set a minimum archive bomb size
Fixes: QTBUG-91870 Change-Id: Ia23e8b8bcfdf65a91fe57e739242a355c681c9e6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network/access/qnetworkreplyhttpimpl.cpp')
-rw-r--r--src/network/access/qnetworkreplyhttpimpl.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/network/access/qnetworkreplyhttpimpl.cpp b/src/network/access/qnetworkreplyhttpimpl.cpp
index 555b609433..88f8e62df1 100644
--- a/src/network/access/qnetworkreplyhttpimpl.cpp
+++ b/src/network/access/qnetworkreplyhttpimpl.cpp
@@ -774,14 +774,7 @@ 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.setMinimumArchiveBombSize(newHttpRequest.minimumArchiveBombSize());
httpRequest.setPeerVerifyName(newHttpRequest.peerVerifyName());
// Create the HTTP thread delegate