diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index fcc7d2513..df2303f08 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -565,6 +565,9 @@ class View extends Object { unset($out); return false; } else { + if ($this->layout === 'xml') { + $response->type('xml'); + } return substr($out, strlen($match[0])); } }