Sfoglia il codice sorgente

Merge remote branch 'djama/patch-1'

* djama/patch-1:
  call header() with replace=false, to provide the possibility of sending mutiple headers of the same type.
Fabien Potencier 14 anni fa
parent
commit
196350b892
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Symfony/Component/HttpFoundation/Response.php

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

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