set a custom user agent

This commit is contained in:
Daniel Friesel 2019-05-09 17:58:23 +02:00
parent 022465d2a7
commit 66a35a35eb

View file

@ -194,6 +194,10 @@ sub startup {
datetime => DateTime->now( time_zone => 'Europe/Berlin' )
->subtract( minutes => $lookbehind ),
lookahead => $lookbehind + $lookahead,
lwp_options => {
timeout => 10,
agent => 'travelynx/' . $self->app->config->{version},
},
);
return {
results => [ $status->results ],