Skip to content

Commit d51f748

Browse files
committed
Fix - recover io after bad http response
By code refactoring wrote wrong abort condition. On the long run one should resort ranges ourself to not provoke s3 error
1 parent 8bab1a2 commit d51f748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/io.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3257,7 +3257,7 @@ class TFile {
32573257
return send_new_request(true);
32583258
}
32593259

3260-
if ((file.fMaxRanges === 1) || !first)
3260+
if ((file.fMaxRanges === 1) || first)
32613261
return rejectFunc(Error('Server returns normal response when multipart was requested, disable multirange support'));
32623262

32633263
file.fMaxRanges = 1;

0 commit comments

Comments
 (0)