benoitc / hackney

simple HTTP client in Erlang
Other
1.34k stars 427 forks source link

Update netloc in client state when redirecting #666

Closed mwcampbell closed 3 years ago

mwcampbell commented 3 years ago

This fixes a problem that caused hackney:location/1 to return the wrong URL after a redirect if the redirect pointed to a different host.

benoitc commented 3 years ago

thanks!