diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-22 15:41:11 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-22 15:41:11 +0200 |
commit | 7a63ec844acd4baea6f595dd4c9d4ae561af9bf6 (patch) | |
tree | 1a42ce6a00b8af8d1ba2638f97a1272f9044fba8 /lib/Travel/Status | |
parent | a42d42358253bc8103df12b8409a32eca36d769b (diff) |
Fix HAFAS->similar_stops_p
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index 9bf8627..58baf8e 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -772,10 +772,11 @@ sub similar_stops_p { if ( $service and exists $hafas_instance{$service}{stopfinder} ) { $opt{user_agent} //= $self->{ua}; + $opt{promise} //= $self->{promise}; return Travel::Status::DE::HAFAS::StopFinder->new_p( url => $hafas_instance{$service}{stopfinder}, input => $self->{station}, - ua => $opt{user_agent}, + user_agent => $opt{user_agent}, developer_mode => $self->{developer_mode}, promise => $opt{promise}, ); |