Retry-After HTTP-date form unsupported #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current
retry_after_from_errorhelper only parses the integer-seconds form of theRetry-Afterheader. Per RFC 7231 it can also be an HTTP-date. Extend parsing to handle both (compute the delta againstDateor system clock).\n\nReference:crates/unifi-api/src/error.rs.Implemented in
f160869: parse_retry_after accepts integer seconds, RFC 2822, RFC 850, and asctime forms; past dates yield 0. Tests cover all four cases.