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

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