X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=tools%2Fprivoxy-regression-test.pl;h=2520799925e7a5fb66bea225b6ad35160c76256e;hb=89109daf604e0df9355fc49ae82e26baf1a47da0;hp=52c4787caffeeed2aa3af614739974b17c850571;hpb=1793bb99268c72e52d459d6f23cffed69dcc25bd;p=privoxy.git diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl index 52c4787c..25207999 100755 --- a/tools/privoxy-regression-test.pl +++ b/tools/privoxy-regression-test.pl @@ -7,7 +7,7 @@ # A regression test "framework" for Privoxy. For documentation see: # perldoc privoxy-regression-test.pl # -# $Id: privoxy-regression-test.pl,v 1.74 2011/06/29 18:35:01 fabiankeil Exp $ +# $Id: privoxy-regression-test.pl,v 1.212 2011/07/17 13:49:52 fk Exp $ # # Wish list: # @@ -743,10 +743,10 @@ sub execute_dumb_fetch_test ($) { my $expected_status_code = $test->{'expected-status-code'}; if (defined $test->{method}) { - $curl_parameters .= quote('--request') . quote($test->{method}) . ' '; + $curl_parameters .= '--request ' . quote($test->{method}) . ' '; } if ($test->{type} == TRUSTED_CGI_REQUEST) { - $curl_parameters .= quote('--referer ') . quote(PRIVOXY_CGI_URL) . ' '; + $curl_parameters .= '--referer ' . quote(PRIVOXY_CGI_URL) . ' '; } $curl_parameters .= quote($test->{'data'}); @@ -1210,8 +1210,9 @@ sub get_page_with_curl ($) { my $retries_left = get_cli_option('retries') + 1; my $failure_reason; - $curl_line .= ' --proxy ' . $proxy if (defined $proxy); - + if (defined $proxy) { + $curl_line .= ' --proxy ' . quote($proxy); + } # We want to see the HTTP status code $curl_line .= " --include "; # Let Privoxy emit two log messages less.