hackney icon indicating copy to clipboard operation
hackney copied to clipboard

On pool redirect, don't return client ref as connection is already cleaned up

Open arjan opened this issue 4 months ago • 0 comments

#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.

arjan avatar Oct 16 '25 07:10 arjan