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

Ensure a Request accounts correctly for isredirect/retryable #864

Merged
merged 1 commit into from Jun 21, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Jun 21, 2022

In the new functionality where a response_stream will only be written to
on the "final" request in the case of redirects/retries, we failed to account
for the case when the user specifically requests no redirects/retries,
so the behavior involved NOT redirecting/retrying, yet we weren't writing
the response body to the response_stream because the Request was otherwise
deemed redirectable/retryable. This PR fixes it by incorporating the values
of the redirect/redirect_limit/retry/retry_limit keyword args into the
computation of isredirect/retryable.

In the new functionality where a response_stream will only be written to
on the "final" request in the case of redirects/retries, we failed to account
for the case when the user specifically requests no redirects/retries,
so the behavior involved NOT redirecting/retrying, yet we weren't writing
the response body to the response_stream because the Request was otherwise
deemed redirectable/retryable. This PR fixes it by incorporating the values
of the redirect/redirect_limit/retry/retry_limit keyword args into the
computation of isredirect/retryable.
@quinnj quinnj merged commit 30e2516 into master Jun 21, 2022
@quinnj quinnj deleted the jq/resp_stream_no_retry branch June 21, 2022 16:11
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.

None yet

1 participant