mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 10:39:01 +01:00
yea qwq
This commit is contained in:
parent
146194e073
commit
b9a992a537
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue