aboutsummaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorStian Soiland-Reyes <stain@apache.org>2019-10-04 16:18:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-10-05 11:41:06 +0200
commitf7f0b0012d42db74a293d4df19b39644015f1868 (patch)
tree371b3a7aebb6e4cc012d7eaa09f28805aeb5ec3a /src/tool_operate.c
parent1d7fe8390f01295e725be3b9e6840e4828da07e2 (diff)
curl: ensure HTTP 429 triggers --retry
This completes #3794. Also make sure the new tests from #4195 are enabled Closes #4465
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index c2fed998c..b82a6672d 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -468,6 +468,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
switch(response) {
+ case 429: /* Too Many Requests (RFC6585) */
case 500: /* Internal Server Error */
case 502: /* Bad Gateway */
case 503: /* Service Unavailable */