Skip to content

Commit

Permalink
fix: ignore empty proxy_env
Browse files Browse the repository at this point in the history
  • Loading branch information
feng19 committed Apr 28, 2024
1 parent 7ae3831 commit 2cb8d99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hackney.erl
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ get_proxy_env(S) when S =:= http; S =:= http_unix ->
get_proxy_env([Var | Rest]) ->
case os:getenv(Var) of
false -> get_proxy_env(Rest);
"" -> get_proxy_env(Rest);
Url -> {ok, Url}
end;
get_proxy_env([]) ->
Expand Down

0 comments on commit 2cb8d99

Please sign in to comment.