mirror of https://github.com/MISP/MISP
Return STIX in JSON format when Accept header asks for it
parent
ec04686202
commit
f79f90a1e4
|
@ -1188,6 +1188,9 @@ class AppController extends Controller
|
|||
if ($returnFormat === 'download') {
|
||||
$returnFormat = 'json';
|
||||
}
|
||||
if ($returnFormat === 'stix' && $this->_isJson()) {
|
||||
$returnFormat = 'stix-json';
|
||||
}
|
||||
$elementCounter = 0;
|
||||
$renderView = false;
|
||||
$final = $this->$scope->restSearch($user, $returnFormat, $filters, false, false, $elementCounter, $renderView);
|
||||
|
|
Loading…
Reference in New Issue