From: Heiko Schlittermann (HS12-RIPE) Date: Tue, 4 Jul 2017 10:52:28 +0000 (+0200) Subject: Copy the proxy scheme from the target scheme. X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/e8a144ec60ab67e0b8825bdffd87bc6aedda0193?hp=a1ee78a865d571f9e3c005febb3245d1e5c7843a Copy the proxy scheme from the target scheme. --- diff --git a/EximBuild/WebTxn.pm b/EximBuild/WebTxn.pm index 27c9cbe..1605fb9 100644 --- a/EximBuild/WebTxn.pm +++ b/EximBuild/WebTxn.pm @@ -8,10 +8,10 @@ See accompanying License file for license details Most of this code is imported from the older standalone script run_web_txn.pl -which is now just a shell that calls the function below. It is now only +which is now just a shell that calls the function below. It is now only needed on older Msys installations (i.e. things running perl < 5.8). -=cut +=cut use strict; use URI::Escape; @@ -115,7 +115,9 @@ sub run_web_txn $ua->agent("Exim Build Farm Reporter"); if (my $proxy = $ENV{BF_PROXY}) { - $ua->proxy('http',$proxy); + # untested. Please notify hs@schlittermann.de, if you + # encounter any problem here: + $ua->proxy(URI->new($target)->scheme, $proxy); } my $request=HTTP::Request->new(POST => "$target/$sig");