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 0a31997 commit aa0b2adCopy full SHA for aa0b2ad
React/Base/RCTMultipartStreamReader.m
@@ -76,7 +76,7 @@ - (void)emitProgress:(NSDictionary *)headers
76
// Throttle progress events so we don't send more that around 60 per second.
77
CFTimeInterval currentTime = CACurrentMediaTime();
78
79
- NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] unsignedIntValue] : 0;
+ NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] intValue] : 0;
80
if (callback && (currentTime - _lastDownloadProgress > 0.016 || final)) {
81
_lastDownloadProgress = currentTime;
82
callback(headers, @(headersContentLength), @(contentLength));
0 commit comments