From 4924cfdc7312ce8c31101fefebf3f0371e7cd779 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 5 Feb 2019 11:55:37 +0100 Subject: [PATCH] ids-functions.pl: Fix show HTTP error code and message Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 4452b4be3d..98bf5806bd 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -222,7 +222,7 @@ sub downloadruleset { # Check if there was any error. unless ($response->is_success) { # Obtain error. - my $error = $response->content; + my $error = $response->status_line(); # Log error message. &_log_to_syslog("Unable to download the ruleset. \($error\)"); @@ -232,7 +232,7 @@ sub downloadruleset { } # Assign the fetched header object. - my $header = $response->headers; + my $header = $response->headers(); # Grab the remote file size from the object and store it in the # variable. -- 2.39.5