mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-30 01:37:51 +01:00
lint
This commit is contained in:
@@ -56,9 +56,9 @@ const ServerBootstrapper = {
|
||||
} else {
|
||||
logger.warn('starting main in PRODUCTION mode. This should not be used for local development.');
|
||||
main = http.createServer(app);
|
||||
app.use(function(req,res,next) {
|
||||
app.use(function (req, res, next) {
|
||||
const schema = (req.headers['x-forwarded-proto'] || '').toLowerCase();
|
||||
if (!req.path.includes('/_ah/start') && req.headers.host.indexOf('localhost')<0 && schema!=='https') {
|
||||
if (!req.path.includes('/_ah/start') && req.headers.host.indexOf('localhost') < 0 && schema !== 'https') {
|
||||
res.redirect('https://' + req.headers.host + req.url);
|
||||
} else {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user