From 983a6e2cd7b1b5a78d6e0a00589dec78fc137abb Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 3 Aug 2017 15:56:19 -0600 Subject: [PATCH] more descriptive error message --- lib/modules/http.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/modules/http.js b/lib/modules/http.js index 8f95f18..63cd2e6 100644 --- a/lib/modules/http.js +++ b/lib/modules/http.js @@ -443,16 +443,21 @@ module.exports.create = function (deps, conf, greenlockMiddleware) { }); }); + prom.then(function (handled) { + // XXX TODO SECURITY html escape + var host = (headers.host || '[no host header]').replace(/