From 58c65a5bac5ce639bdfaa9f78d3d67fe5512f532 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 5 Jun 2017 18:53:36 -0700 Subject: [PATCH] Use host header instead of req.host which is actually req.hostname --- src/web/pug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/pug.js b/src/web/pug.js index b16e2f95..5aab9624 100644 --- a/src/web/pug.js +++ b/src/web/pug.js @@ -13,7 +13,7 @@ function merge(locals, res) { siteTitle: Config.get("html-template.title"), siteDescription: Config.get("html-template.description"), siteAuthor: "Calvin 'calzoneman' 'cyzon' Montgomery", - domain: res.req.host, + domain: res.req.header("host"), loginDomain: Config.get("https.enabled") ? Config.get("https.full-address") : Config.get("http.full-address"), csrfToken: typeof res.req.csrfToken === 'function' ? res.req.csrfToken() : '',