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) {