Skip to content

Commit

Permalink
support sending of multiple headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Feb 9, 2017
1 parent 197f4b4 commit b13673d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ResponseSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ protected function sendStatus()
*/
protected function sendHeaders()
{
foreach ($this->response->headers->get() as $label => $value) {
header("$label: $value", false);
foreach ($this->response->headers->get() as $label => $values) {
foreach ((array) $values as $value) {
header("$label: $value", false);
}
}
}

Expand Down

0 comments on commit b13673d

Please sign in to comment.