From f5b9872f8e955d4ecf9ee2532b6402f5b18e4fcb Mon Sep 17 00:00:00 2001 From: David Meier Date: Tue, 19 Jun 2018 12:02:16 +0200 Subject: [PATCH] header need $key and $value --- src/Formatter/Formatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Formatter/Formatter.php b/src/Formatter/Formatter.php index a379fb1..14c0167 100644 --- a/src/Formatter/Formatter.php +++ b/src/Formatter/Formatter.php @@ -36,8 +36,8 @@ public function addVCard(VCard $vCard): self public function download(): void { - foreach ($this->getHeaders() as $header) { - header($header); + foreach ($this->getHeaders() as $key => $value) { + header(sprintf("%s: %s", $key, $value)); } echo $this->getContent();