From bf13ee49a86dde4317841f5705ae9d115a6a5f90 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Thu, 2 Nov 2023 18:46:12 -0700 Subject: [PATCH] small bug, creates out put glitch, but not error --- inxi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'};