From 27573e9f985f9ec0665b1f9924308d359bd0fdaa Mon Sep 17 00:00:00 2001 From: walkor Date: Tue, 21 Dec 2021 11:39:14 +0800 Subject: [PATCH] Fix cookie() fail when first time set session https://github.com/walkor/webman-framework/issues/22 --- Protocols/Http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Protocols/Http/Response.php b/Protocols/Http/Response.php index 9ebbb87c2..06b013ace 100644 --- a/Protocols/Http/Response.php +++ b/Protocols/Http/Response.php @@ -189,7 +189,7 @@ public function withHeader($name, $value) { * @return $this */ public function withHeaders($headers) { - $this->_header = \array_merge($this->_header, $headers); + $this->_header = \array_merge_recursive($this->_header, $headers); return $this; }