Skip to content

Commit 9ef7fc5

Browse files
committed
base-acme-client.js
silence postAsGet silence postAsGetChal fetchAndRetryProtectedUntilOk can be silenced now remove answer wrapper simplify entire API to get or error eg. order.get | order.error account.get | account.error directory.get | directory.error
1 parent fc32537 commit 9ef7fc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base-acme-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export async function postAsGet(kid, nonce, privateKey, url, acmeDirectory) {
241241
url: url,
242242
};
243243

244-
const response = await fetchAndRetryProtectedUntilOk(METHOD_POST_AS_GET, protectedHeader, privateKey, acmeDirectory);
244+
const response = await fetchAndRetryProtectedUntilOk(METHOD_POST_AS_GET, protectedHeader, privateKey, acmeDirectory, 3, true);
245245

246246
if (response) {
247247
return returnAnswer(response, acmeDirectory);
@@ -279,7 +279,7 @@ export async function postAsGetChal(kid, nonce, privateKey, url, acmeDirectory)
279279
url: url,
280280
};
281281

282-
const response = await fetchAndRetryProtectedUntilOk(METHOD_POST_AS_GET_CHALLENGE, protectedHeader, privateKey, acmeDirectory);
282+
const response = await fetchAndRetryProtectedUntilOk(METHOD_POST_AS_GET_CHALLENGE, protectedHeader, privateKey, acmeDirectory, 3, true);
283283

284284
if (response) {
285285
return returnAnswer(response, acmeDirectory);

0 commit comments

Comments
 (0)