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:
Stefan Schantl
2019-02-05 12:01:43 +01:00
parent 4924cfdc73
commit 81592314eb

View File

@@ -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');