From 8990095d357857b2a4b501a5707008c677aa9161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Thu, 24 Nov 2022 20:47:00 +0100 Subject: [PATCH] Add some debug log --- src/utils/connection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/connection.js b/src/utils/connection.js index 04a0f48..f69b789 100644 --- a/src/utils/connection.js +++ b/src/utils/connection.js @@ -3,6 +3,8 @@ module.exports = function(req) { const isSslEnvSet = process.env.SSL === 'true'; const isHeaderSsl = req.header('X-Forwaded-Proto') === 'https'; + console.log(req.headers); + const proto = isConnectionEncrypted || isSslEnvSet || isHeaderSsl ? 'https' : 'http'; return proto.split(/\s*,\s*/)[0];