This commit is contained in:
Ashley 2023-02-01 14:01:18 +00:00
parent 58a8cd714b
commit f47e0aef2d

View file

@ -115,7 +115,7 @@ this is our config file,you can change stuff here
});
app.use(function (request, response, next) {
if (config.enablealwayshttps == true) {
if (config.enablealwayshttps) {
if (process.env.NODE_ENV != "development" && !request.secure) {
return response.redirect(
"https://" + request.headers.host + request.url