1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 09:34:41 -05:00
This commit is contained in:
Ashley 2023-02-01 14:01:18 +00:00
parent 146194e073
commit b9a992a537

View file

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