From 2b18247dc304c222a785e464b3327ab3b8d27db5 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 20 Sep 2025 14:26:54 +0200 Subject: EFA: respect tls_insecure in _p mode --- lib/Travel/Status/DE/EFA.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 6d3e92c..072ec3c 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -165,6 +165,7 @@ sub new { developer_mode => $opt{developer_mode}, efa_url => $opt{efa_url}, service => $opt{service}, + tls_insecure => $tls_insecure, strp_stopseq => DateTime::Format::Strptime->new( pattern => '%Y%m%d %H:%M', time_zone => $opt{time_zone}, @@ -363,6 +364,10 @@ sub post_with_cache_p { say ' cache miss'; } + if ( $self->{tls_insecure} ) { + $self->{ua}->insecure(1); + } + $self->{ua}->post_p( $url, form => $self->{post} )->then( sub { my ($tx) = @_; -- cgit v1.2.3