Skip to content

Commit

Permalink
fix $result index
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher A. Stelma committed Nov 10, 2015
1 parent 4942155 commit da6a071
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 @@ -231,7 +231,7 @@ public function request_multiple($requests, $options) {
foreach ($to_process as $key => $done) {
$options = $requests[$key]['options'];
if (CURLE_OK !== $done['result']) {
$exception = Requests_Exception_Transport_cURL_Easy::get_class($done['result']);
$exception = Requests_Exception_Transport_cURL_Easy::get_class($done['code']);
$responses[$key] = new $exception(null, $done);
$options['hooks']->dispatch('transport.internal.parse_error', array(&$responses[$key], $requests[$key]));
} else {
Expand Down

0 comments on commit da6a071

Please sign in to comment.