From 3e99a888c44d7c6ff08b7fe1511b2a6db26c8582 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Fri, 24 Apr 2020 19:11:25 -0400 Subject: [PATCH] Not necessarily all netdata installations are on HTTPS --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index a4f7026..2d7a4e9 100644 --- a/src/app.ts +++ b/src/app.ts @@ -109,7 +109,7 @@ app.use(CaptainConstants.netDataRelativePath, function(req, res, next) { 0 ) { let newUrl = - 'https://' + + 'http://' + req.get('host') + CaptainConstants.netDataRelativePath + '/'