Commit 5435f34a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Set travelynx UserAgent for webhook requests

parent 6fde0135
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;