Skip to content

Commit 45081ca

Browse files
committed
This did not work as expected
1 parent 1eba4db commit 45081ca

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Traits/WithCurlRequests.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ protected function sendJsonRequest(string $method, string $url, array $jsonData,
2929
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
3030
CURLOPT_CUSTOMREQUEST => $method,
3131
CURLOPT_POSTFIELDS => json_encode($jsonData),
32-
CURLOPT_HTTPHEADER => $headers,
33-
CURLOPT_WRITEFUNCTION => function ($curl, $streamData) {
34-
if ($this->shouldAbort) {
35-
return -1;
36-
}
37-
}
32+
CURLOPT_HTTPHEADER => $headers
3833
];
3934

4035
if ($jsonData === []) {

0 commit comments

Comments
 (0)