Skip to content

Commit

Permalink
Use the correct variable for request data.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Jul 28, 2016
1 parent 6c9b76b commit 9278fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Requests/Transport/cURL.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected function setup_handle($url, $headers, $data, $options) {
break;
default:
curl_setopt($this->handle, CURLOPT_CUSTOMREQUEST, $options['type']);
if (!empty($r['data'])) {
if (!empty($data)) {
curl_setopt($this->handle, CURLOPT_POSTFIELDS, $data);
}
}
Expand Down

0 comments on commit 9278fea

Please sign in to comment.