diff --git a/server.js b/server.js index f84a8e54..78145679 100644 --- a/server.js +++ b/server.js @@ -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