mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Bump and Migrate logic chartjs 2.9.4 to 4.5.0, bump stripe-php from 17.2.1 to 17.6.0, fontawesome-free from 5.15.4 to 7.0.0, fullcalendar from 6.1.17 to 6.1.19, TinyMCE from 7.9.1 to 8.0.2, bootsatrap js bundle from 4.6.1 to 4.6.2, DataTables from 2.3.1 to 2.3.3
This commit is contained in:
@@ -267,6 +267,11 @@ class CurlClient implements ClientInterface, StreamingClientInterface
|
||||
if ($body) {
|
||||
$opts[\CURLOPT_POSTFIELDS] = $body;
|
||||
}
|
||||
// inspired by https://github.com/stripe/stripe-php/issues/1817#issuecomment-2670463182
|
||||
elseif (isset($opts[\CURLOPT_POST]) && 1 === $opts[\CURLOPT_POST]) {
|
||||
$opts[\CURLOPT_POSTFIELDS] = '';
|
||||
}
|
||||
|
||||
// this is a little verbose, but makes v1 vs v2 behavior really clear
|
||||
if (!$this->hasHeader($headers, 'Idempotency-Key')) {
|
||||
// all v2 requests should have an IK
|
||||
|
||||
Reference in New Issue
Block a user