Set travelynx UserAgent for webhook requests

This commit is contained in:
Daniel Friesel 2019-12-29 23:06:51 +01:00
parent 6fde013585
commit 5435f34aa1

View file

@ -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;