https by default for urls

This commit is contained in:
Roman Shtylman
2013-11-21 21:10:33 -05:00
parent 91b708c134
commit a4f5ceb4bc

View File

@@ -154,7 +154,7 @@ module.exports = function(opt) {
return res.end(err.message); return res.end(err.message);
} }
var url = 'http://' + req_id + '.' + req.headers.host; var url = 'https://' + req_id + '.' + req.headers.host;
info.url = url; info.url = url;
res.end(JSON.stringify(info)); res.end(JSON.stringify(info));
}); });
@@ -178,7 +178,7 @@ module.exports = function(opt) {
return res.end(err.message); return res.end(err.message);
} }
var url = 'http://' + req_id + '.' + req.headers.host; var url = 'https://' + req_id + '.' + req.headers.host;
info.url = url; info.url = url;
res.end(JSON.stringify(info)); res.end(JSON.stringify(info));
}); });