benoitc / hackney

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

HTTP and HTTPS proxies might differ #734

Closed Juliusan closed 9 months ago

Juliusan commented 9 months ago

Hackney handle HTTP_PROXY and HTTPS_PROXY variables as they define the same thing. In fact (e.g. curl documentation) HTTP_PROXY should be used only for http requests and HTTPS_PROXY should be used only for https requests. This PR fixes that. Moreover, this PR adds ALL_PROXY environment variable handling.

benoitc commented 9 months ago

thanks!