mirror of https://github.com/MISP/MISP
fix: [galaxies:export] Return application/json MIME type for all exports
parent
7a6ce50fd2
commit
75e12e692e
|
@ -250,8 +250,8 @@ class GalaxiesController extends AppController
|
||||||
$clusters = $this->Galaxy->GalaxyCluster->unsetFieldsForExport($clusters);
|
$clusters = $this->Galaxy->GalaxyCluster->unsetFieldsForExport($clusters);
|
||||||
$content = json_encode($clusters, JSON_PRETTY_PRINT);
|
$content = json_encode($clusters, JSON_PRETTY_PRINT);
|
||||||
$this->response->body($content);
|
$this->response->body($content);
|
||||||
|
$this->response->type('json');
|
||||||
if ($this->request->data['download'] == 'download') {
|
if ($this->request->data['download'] == 'download') {
|
||||||
$this->response->type('json');
|
|
||||||
$this->response->download(sprintf('galaxy_%s_%s.json', $galaxy['Galaxy']['uuid'], time()));
|
$this->response->download(sprintf('galaxy_%s_%s.json', $galaxy['Galaxy']['uuid'], time()));
|
||||||
}
|
}
|
||||||
return $this->response;
|
return $this->response;
|
||||||
|
|
Loading…
Reference in New Issue