소스 검색

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
      */
     public function withHeaders($headers) {
-        $this->_header = \array_merge($this->_header, $headers);
+        $this->_header = \array_merge_recursive($this->_header, $headers);
         return $this;
     }