diff --git a/js/plugins/SF_AutoUpdate.js b/js/plugins/SF_AutoUpdate.js index 028cac4..57087dd 100644 --- a/js/plugins/SF_AutoUpdate.js +++ b/js/plugins/SF_AutoUpdate.js @@ -122,7 +122,7 @@ var SF_Plugins = SF_Plugins || {}; var path = require('path'); var os = require('os'); var crypto = require('crypto'); - var http = require('http'); + var https = require('https'); SF_AutoUpdate.FileUtils.evaluateJavascript = function (script) { (new Function(script)).call(window); @@ -274,7 +274,7 @@ var SF_Plugins = SF_Plugins || {}; SF_AutoUpdate.UpdateUtils.downloadFullUrl = function (fileName, url, success, fail) { var file = fs.createWriteStream(fileName); - http.get(url, function (response) { + https.get(url, function (response) { response.pipe(file); file.on('finish', function () { file.close(SF_AutoUpdate.UpdateUtils.evaluateJavascript.bind(SF_AutoUpdate.UpdateUtils, success));