Skip to content

Allow retry policy to run on GET requests#867

Merged
XAMPPRocky merged 1 commit into
XAMPPRocky:mainfrom
nataliejameson:nmj/retry-on-empty-body
Mar 28, 2026
Merged

Allow retry policy to run on GET requests#867
XAMPPRocky merged 1 commit into
XAMPPRocky:mainfrom
nataliejameson:nmj/retry-on-empty-body

Conversation

@nataliejameson
Copy link
Copy Markdown
Contributor

Right now, it seems that GET requests do not end up hitting the retry middleware. This is presumably because this one line returns None when there is no buffered body. Just create an empty body if we get None back from try_clone, and allow the retry policy to take effect.

Right now, it seems that GET requests do not end up hitting the retry middleware. This is presumably because this one line returns None when there is no buffered body. Just create an empty body if we get None back from try_clone, and allow the retry policy to take effect.
@XAMPPRocky
Copy link
Copy Markdown
Owner

Thank you for your PR, and congrats on your first contribution! 🎉

@XAMPPRocky XAMPPRocky merged commit 52deb8a into XAMPPRocky:main Mar 28, 2026
9 of 10 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants