Skip to content

Parse Retry-After header responses that include decimal points#980

Merged
kdavisk6 merged 1 commit into
OpenFeign:masterfrom
rdwallis:retry-after-decimal-fix
May 28, 2019
Merged

Parse Retry-After header responses that include decimal points#980
kdavisk6 merged 1 commit into
OpenFeign:masterfrom
rdwallis:retry-after-decimal-fix

Conversation

@rdwallis

Copy link
Copy Markdown
Contributor

rfc7231 section 7.1.3 states that the Retry-After header can return a delay-seconds value
that is a non-negative decimal integer, representing time in seconds.

Some servers return the second delay with a decimal point. Eg instead of 2 they return 2.0
This patch handles this case where the server has included a decimal point in their response.

rfc7231 section 7.1.3 states that the Retry-After header can return delay-seconds value
that is a non-negative decimal integer, representing time in seconds.

Some servers return the second delay with a decimal point.  Eg instead of 2 they return 2.0
This patch handles this case where the server has included a decimal point in their response.
@kdavisk6 kdavisk6 added the enhancement For recommending new capabilities label May 28, 2019

@kdavisk6 kdavisk6 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rdwallis

Thank you for you PR. Approved.

@kdavisk6 kdavisk6 added this to the 10.3.0 milestone May 28, 2019
@kdavisk6 kdavisk6 merged commit 5bc04de into OpenFeign:master May 28, 2019
velo pushed a commit to velo/feign that referenced this pull request Jun 30, 2019
…eign#980)

rfc7231 section 7.1.3 states that the Retry-After header can return delay-seconds value
that is a non-negative decimal integer, representing time in seconds.

Some servers return the second delay with a decimal point.  Eg instead of 2 they return 2.0
This patch handles this case where the server has included a decimal point in their response.
@kdavisk6 kdavisk6 modified the milestones: 10.3.0, 10.2.4 Jul 18, 2019
velo pushed a commit that referenced this pull request Oct 7, 2024
rfc7231 section 7.1.3 states that the Retry-After header can return delay-seconds value
that is a non-negative decimal integer, representing time in seconds.

Some servers return the second delay with a decimal point.  Eg instead of 2 they return 2.0
This patch handles this case where the server has included a decimal point in their response.
velo pushed a commit that referenced this pull request Oct 8, 2024
rfc7231 section 7.1.3 states that the Retry-After header can return delay-seconds value
that is a non-negative decimal integer, representing time in seconds.

Some servers return the second delay with a decimal point.  Eg instead of 2 they return 2.0
This patch handles this case where the server has included a decimal point in their response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement For recommending new capabilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants