mirror of
https://github.com/jimeh/php-rack.git
synced 2026-02-19 03:46:39 +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();
|
||||
|
||||
private static
|
||||
# default headers
|
||||
$headers = array("Content-Type" => "text/html"),
|
||||
$constructed = false,
|
||||
$ob_started = false;
|
||||
|
||||
@@ -144,7 +142,6 @@ class Rack {
|
||||
|
||||
// send headers
|
||||
header(self::$env["SERVER_PROTOCOL"]." ".$status);
|
||||
$headers = array_merge(self::$headers, $headers);
|
||||
foreach( $headers as $key => $value ) {
|
||||
header($key.": ".$value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user