diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-09 18:19:43 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-09 18:19:43 +0200 |
commit | de532515ae5b847a5d0e00936294d49e1c6fb7db (patch) | |
tree | 894e72e55e70b422cc0e7712c2204e472f7828a1 | |
parent | 15ac9f659b97f7ccfb52d40d9e2e892edeb918f6 (diff) |
set a custom useragent
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 8 |
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 = { |