Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.1
-
None
-
-
103ffe1b5 (dev), cbf5a4050 (6.6), 4f3c5a629 (6.5)
Description
on firefox, a PUT request with a response with a 0 content-length generates a critical error and exit the application:
Application exit (RuntimeError: integer divide by zero)
in file:
qtbase/src/network/access/qnetworkreplywasmimpl.cpp
in function
void QNetworkReplyWasmImplPrivate::emitDataReadProgress(qint64 bytesReceived, qint64 bytesTotal)
if we replace
percentFinished = (bytesReceived / bytesTotal) * 100;
by
percentFinished = bytesTotal ? (bytesReceived / bytesTotal) * 100 : 100;
it fix the bug