Explorar o código

call header() with replace=false, to provide the possibility of sending mutiple headers of the same type.

djama %!s(int64=14) %!d(string=hai) anos
pai
achega
96359fb86d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/HttpFoundation/Response.php

+ 1 - 1
src/Symfony/Component/HttpFoundation/Response.php

@@ -128,7 +128,7 @@ class Response
         // headers
         foreach ($this->headers->all() as $name => $values) {
             foreach ($values as $value) {
-                header($name.': '.$value);
+                header($name.': '.$value, false);
             }
         }