mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
req.secure is always 'http'
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user