浏览代码

Fix cookie() fail when first time set session

https://github.com/walkor/webman-framework/issues/22
walkor 3 年之前
父节点
当前提交
27573e9f98
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Protocols/Http/Response.php

+ 1 - 1
Protocols/Http/Response.php

@@ -189,7 +189,7 @@ class Response
      * @return $this
      * @return $this
      */
      */
     public function withHeaders($headers) {
     public function withHeaders($headers) {
-        $this->_header = \array_merge($this->_header, $headers);
+        $this->_header = \array_merge_recursive($this->_header, $headers);
         return $this;
         return $this;
     }
     }