Disabling content-type header output when DEBUG >= 2

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3572 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-09-22 17:52:46 +00:00
parent 48d00ed018
commit 1f475dc193

View file

@ -427,7 +427,9 @@ class RequestHandlerComponent extends Object{
}
if ($cType != null) {
header('Content-type: ' . $cType);
if (DEBUG < 2) {
header('Content-type: ' . $cType);
}
$this->__responseTypeSet = $cType;
return true;
} else {