Skip to content

Commit 2b76b38

Browse files
committed
fix authentication #37
1 parent c55b904 commit 2b76b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function sendRequest($path, $method = 'GET', $data = array(), $useToke
117117
switch ($method) {
118118
case 'POST':
119119
curl_setopt($curl, CURLOPT_POST, count($data));
120-
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
120+
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
121121
break;
122122
case 'PUT':
123123
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PUT');

0 commit comments

Comments
 (0)