Skip to content

Commit

Permalink
Add curl support
Browse files Browse the repository at this point in the history
  • Loading branch information
HavrilaJ committed Jul 30, 2023
1 parent fa29fbf commit 8b6052f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pakiti-client
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ sub https {
} else {
$response = `curl -sq -X POST $url -d "$report"`;
}
($response =~ /OK$/) or die($response);
$ec = $? >> 8;
($response =~ /OK$/) or die("Error: ".$ec);

print(STDERR "report successfully sent\n") if -t STDERR;
print($response);
Expand Down

0 comments on commit 8b6052f

Please sign in to comment.