Skip to content

Commit

Permalink
shortened cURL options array merging
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdee committed Dec 14, 2015
1 parent 32334a6 commit be5ee63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Unirest/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,7 @@ private static function getHeaderString($key, $val)
*/
private static function mergeCurlOptions(&$existing_options, $new_options)
{
foreach($new_options as $key => $value){
$existing_options[$key] = $value;
}

$existing_options = $new_options + $existing_options;
return $existing_options;
}
}

0 comments on commit be5ee63

Please sign in to comment.