mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Set content-type to xml to replicate existing behaviour
This commit is contained in:
parent
0eead76d4b
commit
0ada093295
1 changed files with 3 additions and 0 deletions
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue