Skip to content

Commit 27e507a

Browse files
committed
Fix: Add missing CURLOPT_RETURNTRANSFER so that webhook response is not directly outputted
1 parent 544c3b4 commit 27e507a

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)