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

BearerTokenPolicy rewinds bodies before retrying #23597

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

chlowell
Copy link
Member

@chlowell chlowell commented Oct 17, 2024

http.Client is not kind: it reads every request body and never rewinds. BearerTokenPolicy must therefore rewind bodies before retrying requests, to ensure the transport includes content when sending a retry.

@chlowell chlowell merged commit 32f5e82 into Azure:main Oct 17, 2024
20 checks passed
@chlowell chlowell deleted the rewind branch October 17, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants