Skip to content

Commit

Permalink
--devmode: print request
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Sep 21, 2024
1 parent 3a90f52 commit f67c404
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Travel/Routing/DE/EFA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,13 @@ sub submit {
$self->{ua} = LWP::UserAgent->new(%conf);
$self->{ua}->env_proxy;

if ( $self->{config}{developer_mode} ) {
say 'POST ' . $self->{config}{efa_url};
while ( my ( $key, $value ) = each %{ $self->{post} } ) {
printf( "%30s = %s\n", $key, $value );
}
}

my $response
= $self->{ua}->post( $self->{config}->{efa_url}, $self->{post} );

Expand Down

0 comments on commit f67c404

Please sign in to comment.