diff options
author | Peter Hartmann <phartmann@blackberry.com> | 2013-03-20 10:27:08 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-27 08:09:08 (GMT) |
commit | e8bc7f449df5f1a94bd3d98a4f8adba6d017fa30 (patch) | |
tree | e0166abc514993e8101651aaf63b6bb2e45c6191 /src/network | |
parent | 1d69887b8eb8236bf595ad5be3b527200b6c14b7 (diff) | |
download | Qt-e8bc7f449df5f1a94bd3d98a4f8adba6d017fa30.zip Qt-e8bc7f449df5f1a94bd3d98a4f8adba6d017fa30.tar.gz Qt-e8bc7f449df5f1a94bd3d98a4f8adba6d017fa30.tar.bz2 |
QHttpMultipart: reset read pointer when device is reset
... otherwise we would not read from the beginning when trying to
read again. The device is reset when we try to resend a request
(e.g. remote host closed etc.).
(cherry picked from commit 795468bdc68931a90454bd1c975f7de7ba670e3b)
Change-Id: I8d7b3afb64b9cd25ee7c13b78f0b470d9dae3021
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/qhttpmultipart.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qhttpmultipart.cpp b/src/network/access/qhttpmultipart.cpp index e1f5831..635129a 100644 --- a/src/network/access/qhttpmultipart.cpp +++ b/src/network/access/qhttpmultipart.cpp @@ -479,6 +479,7 @@ bool QHttpMultiPartIODevice::reset() for (int a = 0; a < multiPart->parts.count(); a++) if (!multiPart->parts[a].d->reset()) return false; + readPointer = 0; return true; } qint64 QHttpMultiPartIODevice::readData(char *data, qint64 maxSize) |