mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
48d00ed018
commit
1f475dc193
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue