Use host header instead of req.host which is actually req.hostname

This commit is contained in:
Calvin Montgomery 2017-06-05 18:53:36 -07:00
parent 830486bc4f
commit 58c65a5bac
1 changed files with 1 additions and 1 deletions

View File

@ -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() : '',