hackney
hackney copied to clipboard
On pool redirect, don't return client ref as connection is already cleaned up
#717, released in 1.24.0, releases/skips the body when a custom pool is used and a redirect (30X) response is received.
However, in this case it still returns {ok, Status, Headers, Client}, leading the HTTPoison library to think it should still fetch the body, which then fails with a req_not_found error.
Reported this downstream but would prefer to have it fixed here.