Merge pull request #13014 from jloutsch/fix/download-resume-corruption

Fix download resume corruption when server returns HTTP 200
This commit is contained in:
Tobi 2026-01-08 19:05:49 -08:00 committed by GitHub
commit 694124814e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,7 @@ public class DownloadRunnableFallback extends Thread {
if (mMission.unknownLength || mConn.getResponseCode() == 200) {
// restart amount of bytes downloaded
mMission.done = mMission.offsets[mMission.current] - mMission.offsets[0];
start = 0; // reset position to avoid writing at wrong offset
}
mF = mMission.storage.getStream();