Closed Forty-Bot closed 1 year ago
The Retry-After header uses units of milliseconds.
Retry-After
Make enough requests to be rate-limited and observe that Retry-After has incorrect semantics.
The Retry-After header should use units of seconds.
https://github.com/fastify/fastify-rate-limit/tree/master#ietf-draft-spec-headers
Looks like this is configurable, but shouldn't this be the default?
This was alread fixed in #307
Description
The
Retry-After
header uses units of milliseconds.Steps to Reproduce
Make enough requests to be rate-limited and observe that
Retry-After
has incorrect semantics.Expected Behavior
The
Retry-After
header should use units of seconds.