Skip to content

Commit 26785e9

Browse files
author
cp6
committed
Fixed PATCH issue
Fixed PATCH issue where code 202 still wasnt updating
1 parent 6491658 commit 26785e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function doCurl(string $url, string $type = 'GET', bool $return_http_code
3333
}
3434
} elseif ($type == 'PATCH') {
3535
curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'PATCH');
36+
curl_setopt($crl, CURLOPT_POSTFIELDS, json_encode($post_fields));
3637
}
3738
if (!empty($headers)) {
3839
curl_setopt($crl, CURLOPT_HTTPHEADER, $headers);

0 commit comments

Comments
 (0)