mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 16:32:59 +02:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user