Explorar o código

req.secure is always 'http'

jomo %!s(int64=10) %!d(string=hai) anos
pai
achega
60387c8c7c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
   });
 });