Skip to content

Commit

Permalink
Merge c5eb53d into ea37f1e
Browse files Browse the repository at this point in the history
  • Loading branch information
Герасимов Илья committed Mar 23, 2015
2 parents ea37f1e + c5eb53d commit e47ec20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/Requests/Transport/cURL.php
Expand Up @@ -232,7 +232,10 @@ protected function setup_handle($url, $headers, $data, $options) {
$url = self::format_get($url, $data);
}
elseif (!empty($data) && !is_string($data)) {
$data = http_build_query($data, null, '&');
if ($options["type"] !== Requests::POST) {
// It does not work when CurlFile, curl supports arrays
$data = http_build_query($data, null, '&');
}
}

switch ($options['type']) {
Expand Down

0 comments on commit e47ec20

Please sign in to comment.