Use https to download plugins.json

pull/2490/head
Stefan 2015-01-24 12:55:17 +01:00
parent 4ecf0dfad2
commit da86110f58
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ exports.availablePlugins = null;
var cacheTimestamp = 0;
exports.getAvailablePlugins = function(maxCacheAge, cb) {
request("http://static.etherpad.org/plugins.json", function(er, response, plugins){
request("https://static.etherpad.org/plugins.json", function(er, response, plugins){
if (er) return cb && cb(er);
if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) {
return cb && cb(null, exports.availablePlugins)