mirror of
https://github.com/curl/curl.git
synced 2026-07-26 13:57:57 +03:00
tool_operate: make sure --fail-with-body works with --retry
... in the same way --fail already does. Reported-by: Jakub Bochenski Fixes #8845 Closes #8847
This commit is contained in:
parent
5980068c87
commit
0356804d13
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
|
|||
retry = RETRY_CONNREFUSED;
|
||||
}
|
||||
else if((CURLE_OK == result) ||
|
||||
(config->failonerror &&
|
||||
((config->failonerror || config->failwithbody) &&
|
||||
(CURLE_HTTP_RETURNED_ERROR == result))) {
|
||||
/* If it returned OK. _or_ failonerror was enabled and it
|
||||
returned due to such an error, check for HTTP transient
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue