Skip to content

Commit 38f9d64

Browse files
author
bilovol
committed
resolve_issues_46
1 parent ed3105e commit 38f9d64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ApiClient.php

Lines changed: 3 additions & 3 deletions
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, $data);
120+
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
121121
break;
122122
case 'PUT':
123123
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'PUT');
@@ -138,8 +138,8 @@ protected function sendRequest($path, $method = 'GET', $data = array(), $useToke
138138
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
139139
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
140140
curl_setopt($curl, CURLOPT_HEADER, true);
141-
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 15);
142-
curl_setopt($curl, CURLOPT_TIMEOUT, 15);
141+
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 20);
142+
curl_setopt($curl, CURLOPT_TIMEOUT, 20);
143143

144144
$response = curl_exec($curl);
145145
$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);

0 commit comments

Comments
 (0)