Fix req.hostname

test
dan 2020-03-29 21:39:41 -06:00
parent 3970ccd93f
commit c834ff4a75
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function getSermon(req, res, id){
function getOtherMeta(req, res, title, description, imageUrl, imageWidth, imageHeight) {
imageWidth = imageWidth || 200;
imageHeight = imageHeight || 200;
const url = req.protocol + '://' + reqhostname + req.originalUrl;
const url = req.protocol + '://' + req.hostname + req.originalUrl;
var result = `<html>
<head>
<title>Old Fashion Baptist Church</title>