diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-29 23:06:51 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-29 23:06:51 +0100 |
commit | 5435f34aa1a346bb2c05d14dfb7a6cd631270561 (patch) | |
tree | fd74161129602f634fb3ce2e081fc875a33bbf56 /lib | |
parent | 6fde0135851e939fe8de720101045e324e6db079 (diff) |
Set travelynx UserAgent for webhook requests
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 2 |
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; |