mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
Fix default value for trustAllHosts on iOS (YES->NO)
This commit is contained in:
@@ -255,7 +255,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
|
||||
{
|
||||
NSString* source = [command.arguments objectAtIndex:0];
|
||||
NSString* server = [command.arguments objectAtIndex:1];
|
||||
BOOL trustAllHosts = [[command.arguments objectAtIndex:6 withDefault:[NSNumber numberWithBool:YES]] boolValue]; // allow self-signed certs
|
||||
BOOL trustAllHosts = [[command.arguments objectAtIndex:6 withDefault:[NSNumber numberWithBool:NO]] boolValue]; // allow self-signed certs
|
||||
NSString* objectId = [command.arguments objectAtIndex:9];
|
||||
|
||||
CDVFileTransferDelegate* delegate = [[CDVFileTransferDelegate alloc] init];
|
||||
@@ -360,7 +360,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
|
||||
DLog(@"File Transfer downloading file...");
|
||||
NSString* source = [command.arguments objectAtIndex:0];
|
||||
NSString* target = [command.arguments objectAtIndex:1];
|
||||
BOOL trustAllHosts = [[command.arguments objectAtIndex:2 withDefault:[NSNumber numberWithBool:YES]] boolValue]; // allow self-signed certs
|
||||
BOOL trustAllHosts = [[command.arguments objectAtIndex:2 withDefault:[NSNumber numberWithBool:NO]] boolValue]; // allow self-signed certs
|
||||
NSString* objectId = [command.arguments objectAtIndex:3];
|
||||
NSDictionary* headers = [command.arguments objectAtIndex:4 withDefault:nil];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user