Modifying "response" event hooks affects "in-flight" requests too. #3265
Unanswered
T0rvadaL
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As it says in the title. This obviously only affects the AsyncClient.
I'm not sure if this is considered an issue, but the problem lies in this code snipped in the _send_handling_redirects method:
As you can see, it uses the current value of the _event_hooks property, which might have changed while the request was in-flight.
Here is a failing unit test for good measure:
Beta Was this translation helpful? Give feedback.
All reactions