mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
set a custom user agent
This commit is contained in:
parent
022465d2a7
commit
66a35a35eb
1 changed files with 5 additions and 1 deletions
|
@ -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 ],
|
||||
|
|
Loading…
Reference in a new issue