This commit is contained in:
Trevor Buckner committed 2019-01-19 20:11:16 -05:00
1 parent 71af97e489
commit c1d8796807
1 file changed
+1 -1
+1 -1
View File
@@ -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}`);