mirror of https://github.com/MISP/MISP
fix: Check if the format is xml or application/xml on __sendResponse
parent
e5e9701fbb
commit
8925e88581
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue