Skip to content

Commit 6b94412

Browse files
committed
WIP
1 parent d77dfa1 commit 6b94412

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Optimizely/Event/Dispatcher/CurlEventDispatcher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ public function dispatchEvent(LogEvent $event)
3131
$curl = curl_init();
3232
$options = [
3333
CURLOPT_URL => $event->getUrl(),
34-
CURLOPT_HEADER => $event->getHeaders(),
34+
CURLOPT_HTTPHEADER => $event->getHeaders(),
3535
CURLOPT_POSTFIELDS => http_build_query($event->getParams()),
3636
CURLOPT_POST => 1,
37+
CURLOPT_RETURNTRANSFER => true,
3738
CURLOPT_CONNECTTIMEOUT_MS => 1
3839
];
3940

0 commit comments

Comments
 (0)