removed default content type header from Rack, as

middleware is supposed to control it
This commit is contained in:
2010-01-12 21:18:44 +02:00
parent e95a22c069
commit 71526a4c3a

View File

@@ -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);
}