Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix default value for trustAllHosts on iOS (YES->NO)
  • Loading branch information
agrieve committed Feb 19, 2014
1 parent 35f80e4 commit a1d6fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ios/CDVFileTransfer.m
Expand Up @@ -255,7 +255,7 @@ - (CDVFileTransferDelegate*)delegateForUploadCommand:(CDVInvokedUrlCommand*)comm
{
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];
Expand Down Expand Up @@ -360,7 +360,7 @@ - (void)download:(CDVInvokedUrlCommand*)command
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];

Expand Down

0 comments on commit a1d6fc0

Please sign in to comment.