revert https patch
This commit is contained in:
parent
0b2bfad12f
commit
a3aecfeadc
1 changed files with 0 additions and 7 deletions
|
@ -37,13 +37,6 @@ app.use(express.urlencoded({ extended: false }));
|
|||
app.use(cookieParser());
|
||||
app.use(express.static(path.join(__dirname, "public")));
|
||||
|
||||
// HTTP redirect to HTTPS
|
||||
app.use("/", (req, res, next) => {
|
||||
if (req.protocol === "http") {
|
||||
return res.redirect(`https://${req.hostname}`);
|
||||
}
|
||||
return next();
|
||||
});
|
||||
app.use("/", indexRouter);
|
||||
app.use("/users", usersRouter);
|
||||
app.use("/auth", authRouter);
|
||||
|
|
Loading…
Reference in a new issue