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 fbe2b78 commit 31842b9Copy full SHA for 31842b9
Libraries/Network/RCTDataManager.m
@@ -50,8 +50,9 @@ - (void)executeQuery:(NSString *)queryType
50
} else {
51
encoding = NSUTF8StringEncoding;
52
}
53
+ int responseCode = (int)[((NSHTTPURLResponse *)response) statusCode];
54
NSString *returnData = [[NSString alloc] initWithData:data encoding:encoding];
- responseJSON = @{@"status": @200, @"responseText": returnData};
55
+ responseJSON = @{@"status": @(responseCode), @"responseText": returnData};
56
57
responseJSON = @{@"status": @0, @"responseText": [connectionError localizedDescription]};
58
0 commit comments