소스 검색

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