mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2026-02-04 08:35:53 +08:00
@@ -42,10 +42,14 @@ request({
|
|||||||
data: argv.data,
|
data: argv.data,
|
||||||
method: argv.method,
|
method: argv.method,
|
||||||
instanceConfig,
|
instanceConfig,
|
||||||
preventFailureOnNoResponse: false,
|
|
||||||
escapeData: false,
|
|
||||||
files: argv.files,
|
files: argv.files,
|
||||||
file: argv.file,
|
file: argv.file,
|
||||||
ignoredCodes: [],
|
actions: new LogActions(),
|
||||||
actions: new LogActions()
|
options: {
|
||||||
|
ignoredCodes: [],
|
||||||
|
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, {
|
const response = await retry(execRequest, {
|
||||||
actions,
|
actions,
|
||||||
retry: options.retry || 0,
|
retry: options.retry || 0,
|
||||||
sleep: options.retryWait // wait 3s after each retry
|
sleep: options.retryWait // wait time after each retry
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!response) {
|
if (!response) {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ const request = async({ method, instanceConfig, data, files, file, actions, opti
|
|||||||
const response = await retry(execRequest, {
|
const response = await retry(execRequest, {
|
||||||
actions,
|
actions,
|
||||||
retry: options.retry || 0,
|
retry: options.retry || 0,
|
||||||
sleep: options.retryWait // wait 3s after each retry
|
sleep: options.retryWait // wait time after each retry
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!response) {
|
if (!response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user