mirror of https://github.com/MISP/MISP
Merge pull request #3778 from tomking2/2.4
Fixes Issue #3633 - Returned XML has application/json Content-Type headerpull/3785/head
commit
04fe1c0cf6
|
@ -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