ids-functions.pl: Use GET method to fetch Header data of a file
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 5 Feb 2019 11:01:43 +0000 (12:01 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 5 Feb 2019 11:01:43 +0000 (12:01 +0100)
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>
config/cfgroot/ids-functions.pl

index 98bf580..afccf43 100644 (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');