Explorar el Código

req.secure is always 'http'

jomo hace 10 años
padre
commit
60387c8c7c
Se han modificado 1 ficheros con 1 adiciones y 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
   });
 });