From e8dd067b83c3ab0774c76bf065b1c4f11c7e45ba Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Tue, 7 Mar 2023 11:00:52 +0100 Subject: [PATCH] adjust cli Signed-off-by: Frank Jogeleit --- bin/http-action | 12 ++++++++---- dist/index.js | 2 +- src/httpClient.js | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/bin/http-action b/bin/http-action index 2bdd701..c135199 100755 --- a/bin/http-action +++ b/bin/http-action @@ -42,10 +42,14 @@ request({ data: argv.data, method: argv.method, instanceConfig, - preventFailureOnNoResponse: false, - escapeData: false, files: argv.files, file: argv.file, - ignoredCodes: [], - actions: new LogActions() + actions: new LogActions(), + options: { + ignoredCodes: [], + escapeData: false, + preventFailureOnNoResponse: false, + retry: 0, + retryWait: 0 + } }) diff --git a/dist/index.js b/dist/index.js index d2eb978..4048718 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5261,7 +5261,7 @@ const request = async({ method, instanceConfig, data, files, file, actions, opti const response = await retry(execRequest, { actions, retry: options.retry || 0, - sleep: options.retryWait // wait 3s after each retry + sleep: options.retryWait // wait time after each retry }) if (!response) { diff --git a/src/httpClient.js b/src/httpClient.js index fa5cc17..41c6a4f 100644 --- a/src/httpClient.js +++ b/src/httpClient.js @@ -112,7 +112,7 @@ const request = async({ method, instanceConfig, data, files, file, actions, opti const response = await retry(execRequest, { actions, retry: options.retry || 0, - sleep: options.retryWait // wait 3s after each retry + sleep: options.retryWait // wait time after each retry }) if (!response) {