Skip to content

Commit 2fd7686

Browse files
committed
fix: CURLRequest losts headers with same name
1 parent 8be0277 commit 2fd7686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/HTTP/CURLRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ protected function setResponseHeaders(array $headers = [])
482482
$title = substr($header, 0, $pos);
483483
$value = substr($header, $pos + 1);
484484

485-
$this->response->setHeader($title, $value);
485+
$this->response->addHeader($title, $value);
486486
} elseif (strpos($header, 'HTTP') === 0) {
487487
preg_match('#^HTTP\/([12](?:\.[01])?) (\d+) (.+)#', $header, $matches);
488488

0 commit comments

Comments
 (0)