mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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);
|
unset($out);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
if ($this->layout === 'xml') {
|
||||||
|
$response->type('xml');
|
||||||
|
}
|
||||||
return substr($out, strlen($match[0]));
|
return substr($out, strlen($match[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue