diff mbox

[OSSTEST,4/4] proxy config: Set https_proxy too

Message ID 1491499799-26586-4-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson April 6, 2017, 5:29 p.m. UTC
Clients including curl honour https_proxy (not http_proxy) in the
environment for https:// urls.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 Osstest/TestSupport.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index ac9726c..4ced6c0 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -1891,7 +1891,7 @@  sub http_proxy_envsettings ($) {
     my $proxy = $c{HttpProxy};
     return unless $proxy;
     my @script;
-    foreach my $var (qw(http_proxy)) {
+    foreach my $var (qw(http_proxy https_proxy)) {
         push @script, "http_proxy=$proxy", "export http_proxy";
     }
     return (join '; ', @script).';';