From c17a9778d62d964ac7d8e8da156ba0f08baf8748 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 6 Feb 2019 10:00:17 +0100 Subject: [PATCH] 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. --- 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 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'); -- 2.39.5