From 547072cc18dba0c1052de4109fc2f7ae0dfbe3ee Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Thu, 23 Dec 2021 22:07:28 -0500 Subject: [PATCH] log proto --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 830f1f2..5128513 100644 --- a/app.js +++ b/app.js @@ -12,5 +12,6 @@ app.listen(port, () => { app.use((req, res, next) => { const forwardedProto = req.headers["X-Forwarded-Proto"] || req.protocol + console.log(forwardedProto) forwardedProto === 'https' ? next() : res.redirect('https://' + req.headers.host + req.url, 301) }) \ No newline at end of file