mirror of
https://github.com/status-im/react-native-fs.git
synced 2025-02-28 15:00:29 +00:00
Avoid placing nil value into NSDictionary in downloader
This commit is contained in:
parent
b9660f6038
commit
b78d8a150d
@ -463,7 +463,7 @@ RCT_EXPORT_METHOD(downloadFile:(NSDictionary *)options
|
||||
body:@{@"jobId": jobId,
|
||||
@"statusCode": statusCode,
|
||||
@"contentLength": contentLength,
|
||||
@"headers": headers}];
|
||||
@"headers": headers || [NSNull null]}];
|
||||
};
|
||||
|
||||
params.progressCallback = ^(NSNumber* contentLength, NSNumber* bytesWritten) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user