Unverified Commit 31e32ddf by Mathieu Parent Committed by GitHub

Add test to ensure empty proxy env behaves like unset env

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
parent f1b89a20
......@@ -136,4 +136,8 @@ void test_remote_httpproxy__env(void)
/* configuration overrides environment variables */
cl_setenv("NO_PROXY", "github.none");
assert_config_match("http.https://github.com.proxy", "http://localhost:11/");
/* empty env behaves like unset env */
cl_setenv("HTTPS_PROXY", "");
assert_proxy_is(NULL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment