From f43df2055d3bfc7d6efb1ac1e8a8e6dddf41c036 Mon Sep 17 00:00:00 2001 From: Nikolay Demyankov Date: Mon, 9 May 2016 10:42:41 +0200 Subject: [PATCH] Fixes after merging PR #150. --- src/ios/HCPPlugin.m | 3 ++- src/ios/Updater/HCPUpdateLoader.m | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ios/HCPPlugin.m b/src/ios/HCPPlugin.m index f79da676..b6d44d34 100644 --- a/src/ios/HCPPlugin.m +++ b/src/ios/HCPPlugin.m @@ -169,7 +169,8 @@ - (BOOL)_fetchUpdate:(NSString *)callbackId { [[HCPUpdateLoader sharedInstance] downloadUpdateWithConfigUrl:_pluginXmlConfig.configUrl currentWebVersion:_pluginInternalPrefs.currentReleaseVersionName currentNativeVersion:_pluginXmlConfig.nativeInterfaceVersion - error:&error]; + error:&error + headers:self.headers]; if (error) { if (callbackId) { CDVPluginResult *errorResult = [CDVPluginResult pluginResultWithActionName:kHCPUpdateDownloadErrorEvent diff --git a/src/ios/Updater/HCPUpdateLoader.m b/src/ios/Updater/HCPUpdateLoader.m index 85312883..71cb3f99 100644 --- a/src/ios/Updater/HCPUpdateLoader.m +++ b/src/ios/Updater/HCPUpdateLoader.m @@ -46,7 +46,7 @@ - (BOOL)downloadUpdateWithConfigUrl:(NSURL *)configUrl currentWebVersion:(NSStri } *error = nil; - id task = [[HCPUpdateLoaderWorker alloc] initWithConfigUrl:configUrl + HCPUpdateLoaderWorker *task = [[HCPUpdateLoaderWorker alloc] initWithConfigUrl:configUrl currentWebVersion:currentWebVersion nativeInterfaceVersion:currentNativeVersion]; task.headers = headers;