diff --git a/React/Base/RCTMultipartStreamReader.m b/React/Base/RCTMultipartStreamReader.m index 6f4c5b046..529c595ae 100644 --- a/React/Base/RCTMultipartStreamReader.m +++ b/React/Base/RCTMultipartStreamReader.m @@ -76,7 +76,7 @@ // Throttle progress events so we don't send more that around 60 per second. CFTimeInterval currentTime = CACurrentMediaTime(); - NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] unsignedIntValue] : 0; + NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] intValue] : 0; if (callback && (currentTime - _lastDownloadProgress > 0.016 || final)) { _lastDownloadProgress = currentTime; callback(headers, @(headersContentLength), @(contentLength));