Skip to content

Commit 4ad1427

Browse files
Use curl_setopt_array instead of loop in CurlRequest (#391)
Mistake from 6f81909 where the wrong branch of the if was dropped. Thanks @adaugherity for the report!
1 parent 7ce8332 commit 4ad1427

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/CAS/Request/CurlRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ public function initAndConfigure()
106106
*********************************************************/
107107
$ch = curl_init($this->url);
108108

109-
foreach ($this->_curlOptions as $key => $value) {
110-
curl_setopt($ch, $key, $value);
111-
}
109+
curl_setopt_array($ch, $this->_curlOptions);
112110

113111
/*********************************************************
114112
* Set SSL configuration

0 commit comments

Comments
 (0)