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

test client fails when following more than one redirect with body #2353

Closed
davidism opened this issue Mar 17, 2022 · 0 comments · Fixed by #2354
Closed

test client fails when following more than one redirect with body #2353

davidism opened this issue Mar 17, 2022 · 0 comments · Fixed by #2354
Assignees
Milestone

Comments

@davidism
Copy link
Member

davidism commented Mar 17, 2022

When using follow_redirects=True, the test client incorrectly closes the input stream after the first redirect, rather than after all redirects. If the redirect status code was 307 or 308, the second redirect fails with ValueError: I/O operation on closed file. when it attempts to inspect the closed stream.

@davidism davidism added this to the 2.1.0 milestone Mar 17, 2022
@davidism davidism self-assigned this Mar 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant