req.secure is always 'http'

This commit is contained in:
jomo 2014-11-29 23:20:29 +01:00
parent e80ddc79f3
commit 60387c8c7c

View File

@ -6,7 +6,7 @@ var router = express.Router();
router.get('/', function(req, res) { router.get('/', function(req, res) {
res.render('index', { res.render('index', {
title: 'Crafatar', title: 'Crafatar',
domain: req.secure ? "https" : "http" + "://" + req.headers.host, domain: "https://" + req.headers.host,
config: config config: config
}); });
}); });