Skip to content

Commit

Permalink
fix: swoft-cloud/swoft/issues/1198 header name type error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 7, 2020
1 parent 9e07ccd commit c168434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-message/src/Concern/MessageTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ protected function setHeaders(array $headers): self
protected function initializeHeaders(array $headers): void
{
foreach ($headers as $name => $value) {
$name = strtolower($name);
$name = strtolower((string)$name);

$this->headers[$name] = [$value];
$this->headerNames[$name] = $name;
Expand Down

0 comments on commit c168434

Please sign in to comment.