From: Stefan Schantl Date: Wed, 6 Feb 2019 09:00:17 +0000 (+0100) Subject: Revert "ids-functions.pl: Use GET method to fetch Header data of a file" X-Git-Tag: suricata-rc1~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c17a9778d62d964ac7d8e8da156ba0f08baf8748;p=people%2Fstevee%2Fipfire-2.x.git Revert "ids-functions.pl: Use GET method to fetch Header data of a file" Using the GET method will download the file twice and does not provide the desired mechanism here. This reverts commit 81592314ebe93ae942f28a1bc9037185f155ccda. --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index afccf43263..98bf5806bd 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(GET => $url); + my $request = HTTP::Request->new(HEAD => $url); # Accept the html header. $request->header('Accept' => 'text/html');