shortened cURL options array merging
This commit is contained in:
@@ -566,10 +566,7 @@ class Request
|
|||||||
*/
|
*/
|
||||||
private static function mergeCurlOptions(&$existing_options, $new_options)
|
private static function mergeCurlOptions(&$existing_options, $new_options)
|
||||||
{
|
{
|
||||||
foreach($new_options as $key => $value){
|
$existing_options = $new_options + $existing_options;
|
||||||
$existing_options[$key] = $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $existing_options;
|
return $existing_options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user