We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd7686 commit 76aac71Copy full SHA for 76aac71
system/HTTP/CURLRequest.php
@@ -479,8 +479,8 @@ protected function setResponseHeaders(array $headers = [])
479
{
480
foreach ($headers as $header) {
481
if (($pos = strpos($header, ':')) !== false) {
482
- $title = substr($header, 0, $pos);
483
- $value = substr($header, $pos + 1);
+ $title = trim(substr($header, 0, $pos));
+ $value = trim(substr($header, $pos + 1));
484
485
$this->response->addHeader($title, $value);
486
} elseif (strpos($header, 'HTTP') === 0) {
0 commit comments