Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RickDBCN authored Oct 10, 2023
1 parent 76e853b commit d189d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function sendRequest($endpoint, $params = [], $method = self::METHOD_GET,
case 'PUT':
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PUT');
if ($data) {
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(json_deocde($data)));
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(json_decode($data)));
}
break;
case 'DELETE':
Expand Down

0 comments on commit d189d91

Please sign in to comment.