Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
githubsaturn committed Apr 30, 2020
1 parent fe94966 commit 52e0c2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
'/'
Expand Down

0 comments on commit 52e0c2a

Please sign in to comment.