mirror of
https://github.com/jimeh/php-rack.git
synced 2026-02-19 11:56:38 +00:00
removed default content type header from Rack, as
middleware is supposed to control it
This commit is contained in:
@@ -33,8 +33,6 @@ class Rack {
|
|||||||
$env = array();
|
$env = array();
|
||||||
|
|
||||||
private static
|
private static
|
||||||
# default headers
|
|
||||||
$headers = array("Content-Type" => "text/html"),
|
|
||||||
$constructed = false,
|
$constructed = false,
|
||||||
$ob_started = false;
|
$ob_started = false;
|
||||||
|
|
||||||
@@ -144,7 +142,6 @@ class Rack {
|
|||||||
|
|
||||||
// send headers
|
// send headers
|
||||||
header(self::$env["SERVER_PROTOCOL"]." ".$status);
|
header(self::$env["SERVER_PROTOCOL"]." ".$status);
|
||||||
$headers = array_merge(self::$headers, $headers);
|
|
||||||
foreach( $headers as $key => $value ) {
|
foreach( $headers as $key => $value ) {
|
||||||
header($key.": ".$value);
|
header($key.": ".$value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user