From 81592314ebe93ae942f28a1bc9037185f155ccda Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 5 Feb 2019 12:01:43 +0100 Subject: [PATCH] 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 --- config/cfgroot/ids-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 98bf5806bd..afccf43263 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -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'); -- 2.39.2