From 5435f34aa1a346bb2c05d14dfb7a6cd631270561 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 29 Dec 2019 23:06:51 +0100 Subject: Set travelynx UserAgent for webhook requests --- lib/Travelynx.pm | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3