summaryrefslogtreecommitdiffstats
path: root/src/network/access
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-10-02 12:43:38 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2023-11-06 18:23:19 +0100
commit127e6cc9077bb7ba328f5b71c0748bd0ef71508d (patch)
tree3f39e2879a1f065deb21639cef1c8b0af9880f5b /src/network/access
parent3ea46fa978eeb1e8fbcbd20f1dc88690a25dbe63 (diff)
QNonContiguousByteDeviceThreadForwardImpl: reset m_atEnd during reset()
Because otherwise the atEnd() function will return true if we finished an upload, and then we reset due to an error and try to upload again. In a future patch we rely on atEnd() returning true only if the data has actually been consumed, so re-uploads will not work correctly. Pick-to: 6.6 6.5 Change-Id: Id914648f2509dd112b6bfc71231caa59cbe8ae68 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network/access')
-rw-r--r--src/network/access/qhttpthreaddelegate_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/access/qhttpthreaddelegate_p.h b/src/network/access/qhttpthreaddelegate_p.h
index 0eff043d0b..0d052e2450 100644
--- a/src/network/access/qhttpthreaddelegate_p.h
+++ b/src/network/access/qhttpthreaddelegate_p.h
@@ -248,6 +248,7 @@ public:
if (b) {
// the reset succeeded, we're at pos 0 again
m_pos = 0;
+ m_atEnd = false;
// the HTTP code will anyway abort the request if !b.
}
return b;