mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
80-test_cmp_http.t: Fix handling of empty HTTP proxy string
Fixes #16546 Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16593)
This commit is contained in:
parent
24cdb1bfec
commit
1ed3249f25
@ -42,8 +42,8 @@ sub chop_dblquot { # chop any leading and trailing '"' (needed for Windows)
|
||||
return $str;
|
||||
}
|
||||
|
||||
my $proxy = "<EMPTY>";
|
||||
$proxy = chop_dblquot($ENV{http_proxy} // $ENV{HTTP_PROXY} // $proxy);
|
||||
my $proxy = chop_dblquot($ENV{http_proxy} // $ENV{HTTP_PROXY} // "");
|
||||
$proxy = "<EMPTY>" if $proxy eq "";
|
||||
$proxy =~ s{^https?://}{}i;
|
||||
my $no_proxy = $ENV{no_proxy} // $ENV{NO_PROXY};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user