benoitc / hackney

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

Follow HTTP 308 redirects #635

Closed wyozi closed 1 year ago

wyozi commented 4 years ago

Hi,

Hackney specifies the following status codes as redirects follow with follow_redirect: https://github.com/benoitc/hackney/blob/6bd1f46d98757246cd0896624ff12587451ed122/src/hackney.erl#L735

I think HTTP 308 should be included too. For instance, pinterest returns HTTP 308 when accessing the non-www domain.