qt5base-lts/tests/auto/network/access
Tomasz Duda 60f4fc8b70 HTTP header may be damaged - fix, unit test
"HTTP/1.1 100 CONTINUE\r\n"
If the header from a server is splitted between two packets
the first packet contains "HTTP/1.1 100" and the second one
contains " CONTINUE\r\n", one space (0x20) is skipped. After
processing the line looks in this way "HTTP/1.1 100CONTINUE".
QHttpNetworkReplyPrivate::readStatus(QAbstractSocket *socket)
is called twice, if a http header is splitted as above.
The function always removes whitespace from the beginning of a packet,
even if it is the second part of a http header.

QHttpNetworkReply returns QNetworkReply::RemoteHostClosedError
due to damaged http header during processing.

Improvement of unit test.

Task-number: QTBUG-27161

Change-Id: Ifc2949f62473209b4032185effbf5078b4130cda
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
2012-09-18 00:59:08 +02:00
..
qabstractnetworkcache Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qftp test: QFtp tests require `private_tests' set 2012-09-09 08:51:05 +02:00
qhttpnetworkconnection Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qhttpnetworkreply Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnetworkaccessmanager Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnetworkcachemetadata Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnetworkcookie Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnetworkcookiejar Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnetworkdiskcache Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qnetworkreply HTTP header may be damaged - fix, unit test 2012-09-18 00:59:08 +02:00
qnetworkrequest Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
access.pro test: QFtp tests require `private_tests' set 2012-09-09 08:51:05 +02:00