mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 20:36:43 +00:00
Lint
This commit is contained in:
1 parent
71af97e489
commit
c1d8796807
1 file changed
+1
-1
@@ -1,4 +1,4 @@
|
||||
module.exports = (req, res, next) => {
|
||||
module.exports = (req, res, next)=>{
|
||||
if(process.env.NODE_ENV === 'local') return next();
|
||||
if(req.header('x-forwarded-proto') !== 'https') {
|
||||
return res.redirect(302, `https://${req.get('Host')}${req.url}`);
|
||||
|
||||
Reference in new issue
Block a user