From 60387c8c7c028a412deab9c06f0b46d3b5ae8a21 Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 29 Nov 2014 23:20:29 +0100 Subject: [PATCH] req.secure is always 'http' --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index d0adc26..549b698 100644 --- a/routes/index.js +++ b/routes/index.js @@ -6,7 +6,7 @@ var router = express.Router(); router.get('/', function(req, res) { res.render('index', { title: 'Crafatar', - domain: req.secure ? "https" : "http" + "://" + req.headers.host, + domain: "https://" + req.headers.host, config: config }); });