diff --git a/lib/acme-client.js b/lib/acme-client.js index 528f975..5568742 100644 --- a/lib/acme-client.js +++ b/lib/acme-client.js @@ -8,10 +8,10 @@ module.exports.create = function (deps) { - var NOOP=function () { + var NOOP = function () { }; - var log=NOOP; - var request=require('request'); + var log = NOOP; + var request = deps.request || require('request'); var RSA = deps.RSA; var generateSignature = RSA.signJws; @@ -74,9 +74,9 @@ module.exports.create = function (deps) { //process.exit(1); //return; return request.post({ - url:url, - body:signed, - encoding:null + url: url + , body: signed + , encoding: null }, function(err, res, body) { var parsed;