Skip to content

Commit 49b0316

Browse files
committed
redirect fix
1 parent d69d0b8 commit 49b0316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/middleware/https.middleware.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @param {*} next
77
*/
88
module.exports = (req, res, next) => {
9-
if (req.header('x-forwarded-proto') !== 'https') {
9+
if (req.header('x-forwarded-proto') === 'http') {
1010
res.redirect(`https://${req.header('host')}${req.url}`)
1111
} else {
1212
next()

0 commit comments

Comments
 (0)