Skip to content

Commit 21729d2

Browse files
committed
Use Curl::setCookies in favor Curl::setCookie in loop
1 parent 50927dd commit 21729d2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Curl/MultiCurl.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -823,11 +823,7 @@ private function initHandle($curl)
823823
$curl->setOpts($this->options);
824824
$curl->setHeaders($this->headers);
825825
$curl->setRetry($this->retry);
826-
827-
foreach ($this->cookies as $key => $value) {
828-
$curl->setCookie($key, $value);
829-
}
830-
826+
$curl->setCookies($this->cookies);
831827
$curl->setJsonDecoder($this->jsonDecoder);
832828
$curl->setXmlDecoder($this->xmlDecoder);
833829

0 commit comments

Comments
 (0)