throw error if url is absent
This commit is contained in:
parent
289eaf9cf5
commit
57eab66a4d
|
@ -10,6 +10,9 @@ module.exports.create = function (deps) {
|
|||
var knownUrls = deps.LeCore.knownEndpoints;
|
||||
|
||||
function getAcmeUrls(acmeDiscoveryUrl, cb) {
|
||||
if ('string' !== typeof acmeDiscoveryUrl) {
|
||||
cb(new Error("getAcmeUrls: acmeDiscoveryUrl must be a string"));
|
||||
}
|
||||
|
||||
// TODO check response header on request for cache time
|
||||
return request({
|
||||
|
|
Loading…
Reference in New Issue