From 52e0c2a8bfe9f525d69a411540f7e2e4697e0cfe Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Thu, 30 Apr 2020 19:24:00 -0400 Subject: [PATCH] Fixed formatting --- src/app.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index c5a4a68..b9e05f4 100644 --- a/src/app.ts +++ b/src/app.ts @@ -108,10 +108,11 @@ app.use(CaptainConstants.netDataRelativePath, function(req, res, next) { req.originalUrl.indexOf(CaptainConstants.netDataRelativePath + '/') !== 0 ) { - let isRequestSsl = req.secure || req.get('X-Forwarded-Proto') === 'https' + let isRequestSsl = + req.secure || req.get('X-Forwarded-Proto') === 'https' let newUrl = - (isRequestSsl? 'https://' : 'http://') + + (isRequestSsl ? 'https://' : 'http://') + req.get('host') + CaptainConstants.netDataRelativePath + '/'