mirror of https://github.com/MISP/MISP
Merge pull request #5400 from SteveClement/REST_Client_python
fix: [REST] Python has no 'Null' type, it is called 'None'pull/5430/head
commit
773bf7a0b8
|
@ -1941,16 +1941,16 @@ misp_verifycert = %s
|
|||
relative_path = \'%s\'
|
||||
body = %s
|
||||
|
||||
from pymisp import PyMISP
|
||||
from pymisp import ExpandedPyMISP
|
||||
|
||||
misp = PyMISP(misp_url, misp_key, misp_verifycert)
|
||||
misp = ExpandedPyMISP(misp_url, misp_key, misp_verifycert)
|
||||
misp.direct_call(relative_path, body)
|
||||
',
|
||||
$baseurl,
|
||||
$request['header']['Authorization'],
|
||||
$verifyCert,
|
||||
$relative,
|
||||
(empty($request['body']) ? 'Null' : $request['body'])
|
||||
(empty($request['body']) ? 'None' : $request['body'])
|
||||
);
|
||||
return $python_script;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue