summaryrefslogtreecommitdiffstats
path: root/tests/auto/network
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-08-12 09:53:16 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-08-12 08:27:09 +0000
commit3e25d09b08cc817f8f991fbf2420618516dd9061 (patch)
treeb978e5f0293e3a782040c3d8c9d4c2257d1fd9b7 /tests/auto/network
parent4db44bc32f9a08e89391aa3d99a01060a4f10737 (diff)
QDecompressHelper: Change order of encodings
Before the introduction of QDecompressHelper gzip was preferred over deflate. The change seems to be accidental. Amends commit 7b76379a89158f10780cbfc74965027246faec68. Change-Id: I70f33d551912465d63f49ea3db1ac3575d19a92d Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/network')
-rw-r--r--tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp b/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp
index a1fbe60d3e..2641c65497 100644
--- a/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp
+++ b/tests/auto/network/access/qdecompresshelper/tst_qdecompresshelper.cpp
@@ -90,6 +90,8 @@ void tst_QDecompressHelper::encodingSupported()
QVERIFY(accepted.contains("gzip"));
int expected = 2;
+ QVERIFY(accepted.indexOf("gzip") < accepted.indexOf("deflate"));
+
#if QT_CONFIG(brotli)
QVERIFY(QDecompressHelper::isSupportedEncoding("br"));
QVERIFY(accepted.contains("br"));