ids-functions.pl: Re-order download request handler creation.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-03-24 20:29:21 +01:00
parent 7d8956083b
commit f264adda35

View File

@@ -382,13 +382,13 @@ sub downloadruleset ($) {
return 1;
}
# Pass the requested URL to the downloader.
my $request = HTTP::Request->new(GET => $url);
# Generate temporary file name, located in "/var/tmp" and with a suffix of ".tmp".
my $tmp = File::Temp->new( SUFFIX => ".tmp", DIR => "/var/tmp/", UNLINK => 0 );
my $tmpfile = $tmp->filename();
# Pass the requested url to the downloader.
my $request = HTTP::Request->new(GET => $url);
my $dl_attempt = 1;
my $response;