From c1d8796807bc1f067ee7c3f772fe4f08ee6deba1 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Sat, 19 Jan 2019 20:00:35 -0500 Subject: [PATCH] Lint --- server/forcessl.mw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/forcessl.mw.js b/server/forcessl.mw.js index 1a34e41bc..b84c20f27 100644 --- a/server/forcessl.mw.js +++ b/server/forcessl.mw.js @@ -1,7 +1,7 @@ -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}`); } return next(); -}; \ No newline at end of file +};