Skip to content

Commit 691c913

Browse files
committed
This should be JSON encoded don't need to use http_build_query
1 parent fa297e9 commit 691c913

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Kobas/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ protected function call($http_method, $route, array $params = array(), array $he
157157
break;
158158
case 'DELETE':
159159
case 'PUT':
160-
$this->request->setOption(CURLOPT_POSTFIELDS, http_build_query($params));
160+
$this->request->setOption(CURLOPT_POSTFIELDS, json_encode($params));
161161
break;
162162
case 'GET':
163163
if (count($params)) {

0 commit comments

Comments
 (0)