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) 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)