diff options
author | Andinus <andinus@nand.sh> | 2020-08-29 20:24:45 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-08-29 20:24:45 +0530 |
commit | d5cb7559c055f41b86bad5590e13262635b1cf11 (patch) | |
tree | 5c8832676fffe87a4f78eaf47165c15beed14cc3 /pyxis.pl | |
parent | 1f061ef0d9c5641fea39810f388d0ffc80a87e59 (diff) | |
download | pyxis-d5cb7559c055f41b86bad5590e13262635b1cf11.tar.gz |
Change user-agent string
Diffstat (limited to 'pyxis.pl')
-rwxr-xr-x | pyxis.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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}; |