mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
ids-functions.pl: Use GET method to fetch Header data of a file
The sourcfire web servers does not support the HEAD request so we have to do this with a GET here. Fixes #11987 Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -211,7 +211,7 @@ sub downloadruleset {
|
||||
}
|
||||
|
||||
# Pass the requrested url to the downloader.
|
||||
my $request = HTTP::Request->new(HEAD => $url);
|
||||
my $request = HTTP::Request->new(GET => $url);
|
||||
|
||||
# Accept the html header.
|
||||
$request->header('Accept' => 'text/html');
|
||||
|
||||
Reference in New Issue
Block a user