mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
ids-functions.pl: Fix show HTTP error code and message
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user