Skip to content

Commit

Permalink
Make sure we can add headers with assoc array values (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed May 14, 2017
1 parent 2e8a371 commit e129ff7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MessageTrait.php
Expand Up @@ -95,6 +95,8 @@ public function withAddedHeader($header, $value): self
{
if (!is_array($value)) {
$value = [$value];
} else {
$value = array_values($value);
}

$value = $this->trimHeaderValues($value);
Expand Down

0 comments on commit e129ff7

Please sign in to comment.