From: Stefan Schantl Date: Tue, 5 Feb 2019 10:55:37 +0000 (+0100) Subject: ids-functions.pl: Fix show HTTP error code and message X-Git-Tag: suricata-rc1~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4924cfdc7312ce8c31101fefebf3f0371e7cd779;p=people%2Fstevee%2Fipfire-2.x.git ids-functions.pl: Fix show HTTP error code and message Signed-off-by: Stefan Schantl --- 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.