mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2024-11-23 12:21:06 -05:00
adjust cli
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
This commit is contained in:
parent
a7bd4f21e5
commit
e8dd067b83
3 changed files with 10 additions and 6 deletions
|
@ -42,10 +42,14 @@ request({
|
|||
data: argv.data,
|
||||
method: argv.method,
|
||||
instanceConfig,
|
||||
preventFailureOnNoResponse: false,
|
||||
escapeData: false,
|
||||
files: argv.files,
|
||||
file: argv.file,
|
||||
actions: new LogActions(),
|
||||
options: {
|
||||
ignoredCodes: [],
|
||||
actions: new LogActions()
|
||||
escapeData: false,
|
||||
preventFailureOnNoResponse: false,
|
||||
retry: 0,
|
||||
retryWait: 0
|
||||
}
|
||||
})
|
||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue