diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-03-26 11:59:56 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@trolltech.com> | 2009-03-30 15:44:22 (GMT) |
commit | b790584708a8090211c1897e85f8b3d6df7afa29 (patch) | |
tree | 63610f626d12f896eefe2d49d6be8231184a7659 | |
parent | 79f02e7dbd28f3a60deeb083afb3c74a14430a88 (diff) | |
download | Qt-b790584708a8090211c1897e85f8b3d6df7afa29.zip Qt-b790584708a8090211c1897e85f8b3d6df7afa29.tar.gz Qt-b790584708a8090211c1897e85f8b3d6df7afa29.tar.bz2 |
Fix bug introduced by last patch.
Make sure that we can handle two Set-Cookie headers.
Signed-off-by: Peter Hartmann <peter.hartmann@trolltech.com>
-rw-r--r-- | src/network/access/qnetworkcookie.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkcookie.cpp b/src/network/access/qnetworkcookie.cpp index 5c28ff3..a327bc0 100644 --- a/src/network/access/qnetworkcookie.cpp +++ b/src/network/access/qnetworkcookie.cpp @@ -559,7 +559,7 @@ QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieStrin position = nextNonWhitespace(cookieString, position); bool endOfCookie = false; - while (!endOfCookie && position < length) + while (!endOfCookie && position < endOfSetCookie) switch (cookieString.at(position++)) { case ',': // end of the cookie |