Skip to content

Commit

Permalink
more compact syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Jul 17, 2012
1 parent 9143be7 commit 2605e64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fusioninventory-injector
Expand Up @@ -84,8 +84,9 @@ sub loadstdin {
sub sendContent {
my $content = shift;

my $ua = LWP::UserAgent->new;
$ua->agent($options{useragent});
my $ua = LWP::UserAgent->new(
agent => $options{useragent}
);
my $request = HTTP::Request->new( POST => $options{url} );
$request->header(
'Pragma' => 'no-cache',
Expand Down

0 comments on commit 2605e64

Please sign in to comment.