mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
req.secure is always 'http'
This commit is contained in:
parent
e80ddc79f3
commit
60387c8c7c
@ -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
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user