We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c983115 commit 7e838faCopy full SHA for 7e838fa
cocos2d/CCPackageDownload.m
@@ -434,7 +434,8 @@ - (BOOL)didServerRejectRangeRequest:(NSHTTPURLResponse *)httpResponse
434
{
435
return _fileSize > 0
436
&& (_fileSize != [httpResponse expectedContentLength])
437
- && [httpResponse.allHeaderFields[@"Accept-Ranges"] isEqualToString:@"none"];
+ && ([httpResponse.allHeaderFields[@"Accept-Ranges"] isEqualToString:@"none"]
438
+ || !httpResponse.allHeaderFields[@"Accept-Ranges"]);
439
}
440
441
- (void)restartDownload
0 commit comments