Quellcode durchsuchen

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

djama vor 14 Jahren
Ursprung
Commit
96359fb86d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);
             }
         }