summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller/Stationboard.pm
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-05-09 18:19:43 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-05-09 18:19:43 +0200
commitde532515ae5b847a5d0e00936294d49e1c6fb7db (patch)
tree894e72e55e70b422cc0e7712c2204e472f7828a1 /lib/DBInfoscreen/Controller/Stationboard.pm
parent15ac9f659b97f7ccfb52d40d9e2e892edeb918f6 (diff)
set a custom useragent
Diffstat (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index f95330f..9f4e672 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -146,6 +146,10 @@ sub get_results_for {
realtime_cache => $cache_iris_rt,
log_dir => $ENV{DBFAKEDISPLAY_XMLDUMP_DIR},
lookbehind => 20,
+ lwp_options => {
+ timeout => 10,
+ agent => 'dbf.finalrewind.org/2'
+ },
%opt
);
$data = {
@@ -177,6 +181,10 @@ sub get_results_for {
my $status = Travel::Status::DE::HAFAS->new(
station => $station,
excluded_mots => [qw[bus ferry ondemand tram u]],
+ lwp_options => {
+ timeout => 10,
+ agent => 'dbf.finalrewind.org/2'
+ },
%opt
);
$data = {