about summary refs log tree commit diff stats
path: root/pyxis.pl
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-08-29 20:24:45 +0530
committerAndinus <andinus@nand.sh>2020-08-29 20:24:45 +0530
commitd5cb7559c055f41b86bad5590e13262635b1cf11 (patch)
tree5c8832676fffe87a4f78eaf47165c15beed14cc3 /pyxis.pl
parent1f061ef0d9c5641fea39810f388d0ffc80a87e59 (diff)
downloadpyxis-d5cb7559c055f41b86bad5590e13262635b1cf11.tar.gz
Change user-agent string
Diffstat (limited to 'pyxis.pl')
-rwxr-xr-xpyxis.pl7
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};