Skip to content

Commit 31e32dd

Browse files
authored
Add test to ensure empty proxy env behaves like unset env
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
1 parent f1b89a2 commit 31e32dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/remote/httpproxy.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,8 @@ void test_remote_httpproxy__env(void)
136136
/* configuration overrides environment variables */
137137
cl_setenv("NO_PROXY", "github.none");
138138
assert_config_match("http.https://github.com.proxy", "http://localhost:11/");
139+
140+
/* empty env behaves like unset env */
141+
cl_setenv("HTTPS_PROXY", "");
142+
assert_proxy_is(NULL);
139143
}

0 commit comments

Comments
 (0)