瀏覽代碼

req.secure is always 'http'

jomo 10 年之前
父節點
當前提交
60387c8c7c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      routes/index.js

+ 1 - 1
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
   });
 });