Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
Fix incorrect setting of curl options
Browse files Browse the repository at this point in the history
I was getting some array to string conversion errors in CurlRequest when setting some options for the CurlClient, as you can see it was assigning the whole array instead of the option key.
  • Loading branch information
lombartec authored Nov 24, 2016
1 parent 305237b commit 0657140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/Curl/CurlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function setOptionArray(array $options) {
*/
protected function setOptionsOnRequest(CurlRequest $request, $options) {
foreach($options as $option => $value) {
$request->setOption($options, $value);
$request->setOption($option, $value);
}
}

Expand Down

0 comments on commit 0657140

Please sign in to comment.