From c834ff4a75f6aafa5f1f40b6506aa97350820ccb Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 29 Mar 2020 21:39:41 -0600 Subject: [PATCH] Fix req.hostname --- Server/src/routes/api/share.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/routes/api/share.js b/Server/src/routes/api/share.js index 8cf411b..38cd66c 100644 --- a/Server/src/routes/api/share.js +++ b/Server/src/routes/api/share.js @@ -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 = ` Old Fashion Baptist Church