fix: Check if the format is xml or application/xml on __sendResponse

pull/3778/head
Tom King 2018-10-19 09:54:51 +01:00
parent e5e9701fbb
commit 8925e88581
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ class RestResponseComponent extends Component
private function __sendResponse($response, $code, $format = false, $raw = false, $download = false)
{
if (strtolower($format) === 'application/xml') {
if (strtolower($format) === 'application/xml' || strtolower($format) === 'xml') {
if (!$raw) {
if (isset($response[0])) {
if (count(array_keys($response[0])) == 1) {