Skip to content

Commit 5afc327

Browse files
committed
:octocat: fix for #2 & #3
1 parent c28ada3 commit 5afc327

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Psr18/CurlHandle.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,11 @@ public function init(){
247247
}
248248

249249
// overwrite the default values with $curl_options
250-
\curl_setopt_array($this->curl, $options + $this->options->curl_options);
250+
foreach($this->options->curl_options as $k => $v){
251+
$options[$k] = $v;
252+
}
253+
254+
\curl_setopt_array($this->curl, $options);
251255

252256
return $this->curl;
253257
}

0 commit comments

Comments
 (0)