Browse Source

req.secure is always 'http'

jomo 10 năm trước cách đây
mục cha
commit
60387c8c7c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      routes/index.js

+ 1 - 1
routes/index.js

@@ -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
   });
   });
 });
 });