Merge pull request #386 from jamesreggio/fix-null-headers

Avoid placing nil value into NSDictionary in downloader
This commit is contained in:
Hagen Hübel
2017-11-17 00:01:36 +01:00
committed by GitHub
+1 -1
View File
@@ -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) {