mirror of https://github.com/MISP/MISP
chg: [Cortex] Don't set the content type header for cortex
parent
a3f83fac63
commit
242b4fd4bc
|
@ -215,6 +215,7 @@ class Module extends AppModel
|
|||
);
|
||||
if ($moduleFamily == 'Cortex') {
|
||||
if (!empty(Configure::read('Plugin.' . $moduleFamily . '_authkey'))) {
|
||||
unset($request['header']['Content-Type']);
|
||||
$request['header']['Authorization'] = 'Bearer ' . Configure::read('Plugin.' . $moduleFamily . '_authkey');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue