9
0
mirror of https://github.com/Lomanic/presence-button-web synced 2024-11-22 13:37:29 +00:00

🌯🍘 Checkpoint

./server.js:933874/184
This commit is contained in:
Glitch (hello-express) 2019-12-19 12:37:01 +00:00
parent 757e56c9e3
commit c372868b13

View File

@ -29,7 +29,7 @@ const redirectToHTTPS = (req, res, next) => {
next(); next();
} else { } else {
// request was via http, so redirect to https // request was via http, so redirect to https
res.redirect("https://" + req.headers.host + req.url); res.redirect("https://" + req.headers.host + req.originalUrl);
} }
}; };
app.use("/api", redirectToHTTPS); app.use("/api", redirectToHTTPS);