summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-29 23:06:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-29 23:06:51 +0100
commit5435f34aa1a346bb2c05d14dfb7a6cd631270561 (patch)
treefd74161129602f634fb3ce2e081fc875a33bbf56 /lib
parent6fde0135851e939fe8de720101045e324e6db079 (diff)
Set travelynx UserAgent for webhook requests
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 9389fbd..8a86fd4 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1432,6 +1432,8 @@ sub startup {
if ( $hook->{token} ) {
$header->{Authorization} = "Bearer $hook->{token}";
+ $header->{'User-Agent'}
+ = 'travelynx/' . $self->app->config->{version};
}
my $ua = $self->ua;