summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-22 15:41:11 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-22 15:41:11 +0200
commit7a63ec844acd4baea6f595dd4c9d4ae561af9bf6 (patch)
tree1a42ce6a00b8af8d1ba2638f97a1272f9044fba8 /lib/Travel/Status/DE/HAFAS.pm
parenta42d42358253bc8103df12b8409a32eca36d769b (diff)
Fix HAFAS->similar_stops_p
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm3
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},
);