Skip to content

Event hook on redirect request not being called twice #1804

Discussion options

You must be logged in to vote

Hola!

Could you clarify if this is the intended behaviour? Do you want the event hook to only be called once if we follow the redirect and make another request? That definitely was new to me and the requests HTTPAdapter that I used previously would have been called twice here.

So... we've got a choice here, which I think is either...

  • Include separate event hooks for redirects.
  • Change the behaviour so that it fires the request/response event hooks, for all requests including redirects.

I had been planning on the first, but looking at it right now, today, I'd expect the second to feel more obvious, and it's certainly less complex to describe and is a simpler, smaller surface-area API.

E…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kummerer94
Comment options

@tomchristie
Comment options

@kummerer94
Comment options

Answer selected by tomchristie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants