mirror of
https://github.com/bitinflow/server.git
synced 2026-11-01 13:19:08 +00:00
https by default for urls
This commit is contained in:
1 parent
91b708c134
commit
a4f5ceb4bc
1 file changed
+2
-2
@@ -154,7 +154,7 @@ module.exports = function(opt) {
|
||||
return res.end(err.message);
|
||||
}
|
||||
|
||||
var url = 'http://' + req_id + '.' + req.headers.host;
|
||||
var url = 'https://' + req_id + '.' + req.headers.host;
|
||||
info.url = url;
|
||||
res.end(JSON.stringify(info));
|
||||
});
|
||||
@@ -178,7 +178,7 @@ module.exports = function(opt) {
|
||||
return res.end(err.message);
|
||||
}
|
||||
|
||||
var url = 'http://' + req_id + '.' + req.headers.host;
|
||||
var url = 'https://' + req_id + '.' + req.headers.host;
|
||||
info.url = url;
|
||||
res.end(JSON.stringify(info));
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user