fix setCurlOptionsArray method