diff --git a/src/Events/DatabaseTransactionEvent.php b/src/Events/DatabaseTransactionEvent.php index 88f75ec..a422a3e 100644 --- a/src/Events/DatabaseTransactionEvent.php +++ b/src/Events/DatabaseTransactionEvent.php @@ -24,6 +24,8 @@ public function create(string $sessionId, string $sessionSecret, array $data): v $this->setOption(CURLOPT_URL, $endpoint); $this->setOption(CURLOPT_RETURNTRANSFER, true); + $this->setOption(CURLOPT_HEADER, false); + $this->setOption(CURLOPT_RETURNTRANSFER, false); $this->setOption( CURLOPT_POSTFIELDS, $this->generatePayload($data, self::EVENT_TYPE) diff --git a/src/Events/LogEvent.php b/src/Events/LogEvent.php index bd66bc4..2e773e1 100644 --- a/src/Events/LogEvent.php +++ b/src/Events/LogEvent.php @@ -50,6 +50,8 @@ public function create(string $sessionId, string $sessionSecret, array $data): v $this->setOption(CURLOPT_URL, $endpoint); $this->setOption(CURLOPT_RETURNTRANSFER, true); + $this->setOption(CURLOPT_HEADER, false); + $this->setOption(CURLOPT_RETURNTRANSFER, false); $this->setOption( CURLOPT_POSTFIELDS, $this->generatePayload($data, self::EVENT_TYPE)