summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-05-09 17:58:23 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-05-09 17:58:23 +0200
commit66a35a35ebd8efdd722597e6986cb431b3f629c0 (patch)
tree6c868bafded4cfbfc0c1533adca3faf123ebe5da /lib
parent022465d2a707e6752eca72be795363b06bffb1b3 (diff)
set a custom user agent
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm6
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 ],