diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-09 17:58:23 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-09 17:58:23 +0200 |
commit | 66a35a35ebd8efdd722597e6986cb431b3f629c0 (patch) | |
tree | 6c868bafded4cfbfc0c1533adca3faf123ebe5da /lib/Travelynx.pm | |
parent | 022465d2a707e6752eca72be795363b06bffb1b3 (diff) |
set a custom user agent
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 59d03a9..3840518 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -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 ], |