[Privoxy-commits] [privoxy] 04/05: privoxy-regression-test: In get_page_with_curl(), only log the first line in case of errors
User Git
git at git.privoxy.org
Sun Jul 26 09:38:19 CEST 2026
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit db4515d75033bd4e17ee338d33fe726161735cb3
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue Jun 30 14:50:47 2026 +0200
privoxy-regression-test: In get_page_with_curl(), only log the first line in case of errors
---
tools/privoxy-regression-test.pl | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl
index c985d0d5..7a21f99d 100755
--- a/tools/privoxy-regression-test.pl
+++ b/tools/privoxy-regression-test.pl
@@ -1493,7 +1493,7 @@ sub get_page_with_curl($) {
if ($?) {
log_and_die("Executing '$curl_line' failed.") unless @buffer;
- $failure_reason = array_as_string(\@buffer);
+ $failure_reason = $buffer[0];
chomp $failure_reason;
l(LL_SOFT_ERROR, "Fetch failure: '" . $failure_reason . $! ."'");
}
@@ -1514,17 +1514,6 @@ sub get_page_with_curl($) {
#
############################################################################
-sub array_as_string($) {
- my $array_ref = shift;
- my $string = '';
-
- foreach (@{$array_ref}) {
- $string .= $_;
- }
-
- return $string;
-}
-
sub show_test($) {
my $test = shift;
log_message('Test is:' . test_content_as_string($test));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list