Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 28, 2019

Conversation

rdwallis
Copy link
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
Copy link
Member

@kdavisk6 kdavisk6 left a comment

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