qt5base-lts/tests/auto
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
..
cmake Don't attempt to test DBus on QNX. 2012-08-28 21:17:48 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Test: Replace QSKIP by XFAIL 2012-09-07 15:39:31 +02:00
corelib Blackberry: fix tst_QFileInfo::fileTimes() 2012-09-14 19:07:15 +02:00
dbus Fix QDBusServer with more than one connection 2012-09-14 01:02:06 +02:00
gui Autotests: Use qInstallMessageHandler 2012-09-14 15:23:15 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network HTTP header may be damaged - fix, unit test 2012-09-18 00:59:08 +02:00
opengl tests: Don't omit the body of a test function with QT_BUILD_INTERNAL 2012-09-14 06:24:38 +02:00
other Autotests: Use qInstallMessageHandler 2012-09-14 15:23:15 +02:00
printsupport Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
shared Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
sql Use QStringList::join(QChar) overload where applicable [QtSql] 2012-09-03 19:35:25 +02:00
testlib Make QSignalSpy copy QVariant parameters directly 2012-08-07 11:15:55 +02:00
tools port qmake to qt creator's qmake language evaluator 2012-09-11 00:13:01 +02:00
widgets test: Mark tst_QTabBar::sizeHints() failure as XFAIL 2012-09-17 09:14:05 +02:00
xml Test: Remove QSKIP for tst_QXmlSimpleReader::inputFromSocket 2012-09-07 15:39:31 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Fix auto tests build with gcc 4.7 2012-05-23 00:42:20 +02:00
platformquirks.h Remove #ifdef Q_WS_ / include / #endif conditionals. 2012-07-16 16:30:55 +02:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00