QNetworkRequest autotest: adapt to new cookie parsing (re. commas)
Cookies cannot be separated by commas anymore, but are separated by new lines. See "Remove support for multiple cookies in one Set-Cookie header to follow RFC6265." Reviewed-by: Martin Petersson Task-number: QTBUG-21456 (cherry-picked from 5d809703aa2d2a08ae7e9610fd42025b081d3d0c) Change-Id: If7d1b4e58399a5d678495af6ff280409ba220e86 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>bb10
parent
297a25cc4b
commit
bd38ff3c54
|
|
@ -414,7 +414,7 @@ void tst_QNetworkRequest::rawHeaderParsing_data()
|
|||
QTest::newRow("SetCookie-3") << QNetworkRequest::SetCookieHeader
|
||||
<< QVariant::fromValue(QList<QNetworkCookie>() << cookie << cookie2)
|
||||
<< true << "Set-Cookie"
|
||||
<< "a=b; path=/, c=d";
|
||||
<< "a=b; path=/\nc=d";
|
||||
}
|
||||
|
||||
void tst_QNetworkRequest::rawHeaderParsing()
|
||||
|
|
|
|||
Loading…
Reference in New Issue