From d5cb7559c055f41b86bad5590e13262635b1cf11 Mon Sep 17 00:00:00 2001 From: Andinus Date: Sat, 29 Aug 2020 20:24:45 +0530 Subject: Change user-agent string --- pyxis.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyxis.pl b/pyxis.pl index c45f3e6..07fdffd 100755 --- a/pyxis.pl +++ b/pyxis.pl @@ -46,7 +46,12 @@ my %feeds = get_feeds(); my %dispatch = ( fetch => sub { require HTTP::Tiny; - my $http = HTTP::Tiny->new(verify_SSL => 1); + my $http = HTTP::Tiny + ->new( + verify_SSL => 1, + # default user-agent string if ending in space. + agent => "pyxis: https://andinus.nand.sh/pyxis ", + ); foreach my $feed (sort keys %feeds) { my $url = $feeds{$feed}; -- cgit 1.4.1-2-gfad0