Explorar o código

Fix cookie() fail when first time set session

https://github.com/walkor/webman-framework/issues/22
walkor %!s(int64=3) %!d(string=hai) anos
pai
achega
27573e9f98
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }