Skip to content

Commit 4f260d3

Browse files
authored
Merge pull request #3 from picqer/mute-curl-response
Fix: Add missing CURLOPT_RETURNTRANSFER so that webhook response is not directly outputted
2 parents 544c3b4 + 27e507a commit 4f260d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Client/CurlPicqerClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ private function post(string $endpoint, array $body): void
3333
curl_setopt($session, CURLOPT_CUSTOMREQUEST, 'POST');
3434
curl_setopt($session, CURLOPT_POSTFIELDS, json_encode($body));
3535
curl_setopt($session, CURLOPT_FAILONERROR, true);
36+
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
3637

3738
curl_exec($session);
3839

0 commit comments

Comments
 (0)