diff --git a/CHANGELOG.md b/CHANGELOG.md index 27c8391..26d7875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 2.0.6 - Fixed #187: setSSLCertMode with "default" throws an error on Android +- Fixed #115: HTTP connections are not kept alive on iOS (thanks MorpheusDe97) ## 2.0.5 diff --git a/package-lock.json b/package-lock.json index 74651f6..b168be6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-advanced-http", - "version": "2.0.5", + "version": "2.0.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/ios/CordovaHttpPlugin.m b/src/ios/CordovaHttpPlugin.m index 3df7b06..8fcf45d 100644 --- a/src/ios/CordovaHttpPlugin.m +++ b/src/ios/CordovaHttpPlugin.m @@ -25,8 +25,8 @@ - (void)pluginInitialize { securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone]; - redirect = true; manager = [AFHTTPSessionManager manager]; + redirect = true; } - (void)setRequestSerializer:(NSString*)serializerName forManager:(AFHTTPSessionManager*)manager {