From dee74149885285a35ade3f2d4f3def79a8fc8f05 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 1 May 2015 19:46:28 +0200 Subject: IRIS->new: Actually use the lwp_options default when it is not set --- lib/Travel/Status/DE/IRIS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm index 1b153e0..671cef2 100644 --- a/lib/Travel/Status/DE/IRIS.pm +++ b/lib/Travel/Status/DE/IRIS.pm @@ -21,7 +21,7 @@ sub new { my %lwp_options = %{ $opt{lwp_options} // { timeout => 10 } }; - my $ua = LWP::UserAgent->new( %{ $opt{lwp_options} } ); + my $ua = LWP::UserAgent->new(%lwp_options); if ( not $opt{station} ) { confess('station flag must be passed'); -- cgit v1.2.3