From 2cb8d995aa1541b89c135552c522cfcf860d55e1 Mon Sep 17 00:00:00 2001 From: feng19 Date: Sun, 28 Apr 2024 18:09:27 +0800 Subject: [PATCH] fix: ignore empty proxy_env --- src/hackney.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hackney.erl b/src/hackney.erl index 7dbef235..0e742535 100644 --- a/src/hackney.erl +++ b/src/hackney.erl @@ -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([]) ->