Set content-type to xml to replicate existing behaviour

This commit is contained in:
David Gallagher 2013-06-07 00:28:28 +10:00
parent 0eead76d4b
commit 0ada093295

View file

@ -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]));
}
}