projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad06976
)
80-test_cmp_http.t: Fix handling of empty HTTP proxy string
author
Dr. David von Oheimb
<David.von.Oheimb@siemens.com>
Mon, 13 Sep 2021 06:14:58 +0000
(08:14 +0200)
committer
Tomas Mraz
<tomas@openssl.org>
Tue, 14 Sep 2021 13:01:30 +0000
(15:01 +0200)
Fixes #16546
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16593)
(cherry picked from commit
1ed3249f253e4490a813279e2eb253c8e5cfaabb
)
test/recipes/80-test_cmp_http.t
patch
|
blob
|
history
diff --git
a/test/recipes/80-test_cmp_http.t
b/test/recipes/80-test_cmp_http.t
index 7bd95337e83f15ea77228646a46aa5742ad71718..92f11e8ac8a53c5d82f24823505afc32268cc66a 100644
(file)
--- a/
test/recipes/80-test_cmp_http.t
+++ b/
test/recipes/80-test_cmp_http.t
@@
-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};