diff --git a/inxi b/inxi index 3d3c7bd..ad912b7 100755 --- a/inxi +++ b/inxi @@ -50,7 +50,7 @@ use POSIX qw(ceil uname strftime ttyname); ## INXI INFO ## my $self_name='inxi'; my $self_version='3.3.31'; -my $self_date='2023-10-31'; +my $self_date='2023-11-02'; my $self_patch='00'; ## END INXI INFO ## @@ -2711,7 +2711,8 @@ sub download_file { sub get_file_http_tiny { my ($type,$url,$file,$ua) = @_; $ua = ($ua && $dl{'ua'}) ? $dl{'ua'} . $ua: ''; - my %headers = ($ua) ? ('agent' => $ua) : undef; + my %headers; + %headers = ('agent' => $ua) if $ua; my $tiny = HTTP::Tiny->new(%headers); # note: default is no verify, so default here actually is to verify unless overridden $tiny->verify_SSL => 1 if !$use{'no-ssl'};