Skip to content

Commit

Permalink
Merge pull request #3 from picqer/mute-curl-response
Browse files Browse the repository at this point in the history
Fix: Add missing CURLOPT_RETURNTRANSFER so that webhook response is not directly outputted
  • Loading branch information
cwdt authored Dec 13, 2023
2 parents 544c3b4 + 27e507a commit 4f260d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client/CurlPicqerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private function post(string $endpoint, array $body): void
curl_setopt($session, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($session, CURLOPT_POSTFIELDS, json_encode($body));
curl_setopt($session, CURLOPT_FAILONERROR, true);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);

curl_exec($session);

Expand Down

0 comments on commit 4f260d3

Please sign in to comment.