diff --git a/cake/libs/controller/components/request_handler.php b/cake/libs/controller/components/request_handler.php index 42b915516..72f0f7a33 100644 --- a/cake/libs/controller/components/request_handler.php +++ b/cake/libs/controller/components/request_handler.php @@ -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 {