Browse Source

Keep headers from overwriting each other

Nathaniel van Diepen 6 năm trước cách đây
mục cha
commit
7ea95e694a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Http/response.class.php

+ 1 - 1
Http/response.class.php

@@ -137,7 +137,7 @@
 				$this->fire('shutdown');
 				http_response_code($this->code);
 				foreach($this->headers as $k => $header){
-					header("{$header[0]}: $header[1]");
+					header("{$header[0]}: $header[1]", false);
 				}
 				echo $this->body;
 				flush();