Skip to content

Commit aa0b2ad

Browse files
giladnoide
authored andcommitted
Fix unrecognized selector error
Summary: Fixes "[NSTaggedPointerString unsignedIntValue]: unrecognized selector" error Closes #15755 Differential Revision: D5763628 Pulled By: shergin fbshipit-source-id: 6e1d1b1ae6bc63e07112b9dddcdf8e6f812a7f51
1 parent 0a31997 commit aa0b2ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Base/RCTMultipartStreamReader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ - (void)emitProgress:(NSDictionary *)headers
7676
// Throttle progress events so we don't send more that around 60 per second.
7777
CFTimeInterval currentTime = CACurrentMediaTime();
7878

79-
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] unsignedIntValue] : 0;
79+
NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] intValue] : 0;
8080
if (callback && (currentTime - _lastDownloadProgress > 0.016 || final)) {
8181
_lastDownloadProgress = currentTime;
8282
callback(headers, @(headersContentLength), @(contentLength));

0 commit comments

Comments
 (0)