mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
https by default for urls
This commit is contained in:
@@ -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));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user