default acmeChallengePrefix

This commit is contained in:
AJ ONeal 2016-08-10 22:14:39 -06:00
parent 3d6d24fa83
commit d9ff6bf4de
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module.exports.create = function (le) {
log(le.debug, "created middleware");
return function () {
var prefix = le.acmeChallengePrefix; // /.well-known/acme-challenge/:token
var prefix = le.acmeChallengePrefix || '/.well-known/acme-challenge/';
return function (req, res, next) {
if (0 !== req.url.indexOf(prefix)) {