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 81592314eb.
This commit is contained in:
Stefan Schantl
2019-02-06 10:00:17 +01:00
parent 422dc4caf9
commit c17a9778d6

View File

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