From 66a35a35ebd8efdd722597e6986cb431b3f629c0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 May 2019 17:58:23 +0200 Subject: [PATCH] set a custom user agent --- lib/Travelynx.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ],