Set travelynx UserAgent for webhook requests
This commit is contained in:
parent
6fde013585
commit
5435f34aa1
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue