fix: [stix export] Making stix json download return json instead of xml

pull/5317/head
chrisr3d 2019-10-15 10:07:32 +02:00
parent b140d6be09
commit 7a51733e40
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 2 additions and 2 deletions

View File

@ -4456,12 +4456,12 @@ class EventsController extends AppController
'checkbox_set' => '/events/restSearch/stix/eventid:' . $id . '/withAttachments:1'
),
'stix_json' => array(
'url' => '/events/restSearch/stix/eventid:' . $id . '.json',
'url' => '/events/restSearch/stix-json/eventid:' . $id,
'text' => 'STIX JSON (metadata + all attributes)',
'requiresPublished' => false,
'checkbox' => true,
'checkbox_text' => 'Encode Attachments',
'checkbox_set' => '/events/restSearch/stix/withAttachments:1/eventid:' . $id . '.json'
'checkbox_set' => '/events/restSearch/stix-json/withAttachments:1/eventid:' . $id
),
'stix2_json' => array(
'url' => '/events/restSearch/stix2/eventid:' . $id,