]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Revert "ids-functions.pl: Use GET method to fetch Header data of a file"
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 6 Feb 2019 09:00:17 +0000 (10:00 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 6 Feb 2019 09:00:17 +0000 (10:00 +0100)
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

index afccf43263d813289e663bda433675f9f2e2b03d..98bf5806bd984758ea77acccbb8f09d0421b2015 100644 (file)
@@ -211,7 +211,7 @@ sub downloadruleset {
        }
 
        # Pass the requrested url to the downloader.
        }
 
        # 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');
 
        # Accept the html header.
        $request->header('Accept' => 'text/html');