Commit dee74149 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

IRIS->new: Actually use the lwp_options default when it is not set

parent 56afae1f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
git HEAD

    * IRIS->new: Fix default lwp_options value (was documented, but not used)

Travel::Status::DE::IRIS 1.00 - Fri May 01 2015

    * IRIS->new: Use lwp_options to explicitly pass arguments to the
+1 −1
Original line number Diff line number Diff line
@@ -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');