From 96b9cd1a74d838f9f03873786db7467e1e591f80 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 28 May 2019 04:31:50 -0600 Subject: [PATCH] fix POST-as-GET --- app/js/bluecrypt-acme.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/js/bluecrypt-acme.js b/app/js/bluecrypt-acme.js index 1ca5704..b669ec8 100644 --- a/app/js/bluecrypt-acme.js +++ b/app/js/bluecrypt-acme.js @@ -2174,7 +2174,7 @@ ACME._postChallenge = function (me, options, auth) { options: options , url: auth.url , protected: { kid: options._kid } - , payload: Enc.binToBuf(JSON.stringify({})) + , payload: Enc.binToBuf('') }).then(function (resp) { if ('processing' === resp.body.status) { //#console.debug('poll: again'); @@ -2225,7 +2225,7 @@ ACME._postChallenge = function (me, options, auth) { options: options , url: auth.url , protected: { kid: options._kid } - , payload: Enc.binToBuf(JSON.stringify({})) + , payload: Enc.binToBuf('') }).then(function (/*#resp*/) { //#console.debug('respond to challenge: resp.body:'); //#console.debug(resp.body); @@ -2431,7 +2431,7 @@ ACME._finalizeOrder = function (me, options) { options: options , url: options._certificate , protected: { kid: options._kid } - , payload: Enc.binToBuf(JSON.stringify({})) + , payload: Enc.binToBuf('') }).then(function (resp) { //#console.debug('acme-v2: csr submitted and cert received:'); // https://github.com/certbot/certbot/issues/5721