From 0ada093295ff53428d219b8059a1d43cf6ae1feb Mon Sep 17 00:00:00 2001 From: David Gallagher Date: Fri, 7 Jun 2013 00:28:28 +1000 Subject: [PATCH] Set content-type to xml to replicate existing behaviour --- lib/Cake/View/View.php | 3 +++ 1 file changed, 3 insertions(+) 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])); } }