From 44e20ab56d0161dd775d4e0c8a6eb1d2fc71d2cf Mon Sep 17 00:00:00 2001 From: Alvaro Schipper Date: Wed, 28 Aug 2024 12:07:57 +0200 Subject: [PATCH 1/2] Update req.ex --- lib/req.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/req.ex b/lib/req.ex index e511e29..424fdc2 100644 --- a/lib/req.ex +++ b/lib/req.ex @@ -325,7 +325,7 @@ defmodule Req do * `false` - don't retry. * `:retry_delay` - if not set, which is the default, the retry delay is determined by - the value of `retry-delay` header on HTTP 429/503 responses. If the header is not set, + the value of the `Retry-After` header on HTTP 429/503 responses. If the header is not set, the default delay follows a simple exponential backoff: 1s, 2s, 4s, 8s, ... `:retry_delay` can be set to a function that receives the retry count (starting at 0) From 0795b7309b44026e8e3f63185ab1354c68a7c7c1 Mon Sep 17 00:00:00 2001 From: Alvaro Schipper Date: Wed, 28 Aug 2024 12:09:01 +0200 Subject: [PATCH 2/2] Fix retry header typo in steps --- lib/req/steps.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/req/steps.ex b/lib/req/steps.ex index d1671ed..b5fc655 100644 --- a/lib/req/steps.ex +++ b/lib/req/steps.ex @@ -1935,7 +1935,7 @@ defmodule Req.Steps do * `false` - don't retry. * `:retry_delay` - if not set, which is the default, the retry delay is determined by - the value of `retry-delay` header on HTTP 429/503 responses. If the header is not set, + the value of the `Retry-After` header on HTTP 429/503 responses. If the header is not set, the default delay follows a simple exponential backoff: 1s, 2s, 4s, 8s, ... `:retry_delay` can be set to a function that receives the retry count (starting at 0)