summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-04-10 14:09:04 +0200
committerAndy Shaw <andy.shaw@qt.io>2018-05-14 12:36:32 +0000
commitbb6ba17019b596049de3ffd31a79f75f597e7f41 (patch)
tree02bdf33c3fb2c7190b32ba9eb51965633187036e /tests
parent3909d37cb7b25d6cead0d900f4f86613020d40a2 (diff)
Treat the Content-Disposition header as a known header
Change-Id: I307f67b10759d17f603a340b14266ab47d195497 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/network/access/qnetworkrequest/tst_qnetworkrequest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/network/access/qnetworkrequest/tst_qnetworkrequest.cpp b/tests/auto/network/access/qnetworkrequest/tst_qnetworkrequest.cpp
index bc9144e40e..50c7ddb0b6 100644
--- a/tests/auto/network/access/qnetworkrequest/tst_qnetworkrequest.cpp
+++ b/tests/auto/network/access/qnetworkrequest/tst_qnetworkrequest.cpp
@@ -373,6 +373,9 @@ void tst_QNetworkRequest::rawHeaderParsing_data()
<< QVariant::fromValue(QList<QNetworkCookie>() << cookie << cookie2)
<< true << "Set-Cookie"
<< "a=b; path=/\nc=d";
+ QTest::newRow("Content-Disposition") << QNetworkRequest::ContentDispositionHeader
+ << QVariant("attachment; filename=\"test.txt\"") << true
+ << "Content-Disposition" << "attachment; filename=\"test.txt\"";
}
void tst_QNetworkRequest::rawHeaderParsing()