fix: use POST in search galaxy cluster

pull/955/head
Raphaël Vinot 2023-03-17 13:31:30 +01:00
parent 5d2d1da31f
commit 4363b3f43b
1 changed files with 1 additions and 1 deletions

View File

@ -1491,7 +1491,7 @@ class PyMISP:
kw_params = {"context": context} kw_params = {"context": context}
if searchall: if searchall:
kw_params["searchall"] = searchall kw_params["searchall"] = searchall
r = self._prepare_request('GET', f"galaxy_clusters/index/{galaxy_id}", kw_params=kw_params) r = self._prepare_request('POST', f"galaxy_clusters/index/{galaxy_id}", kw_params=kw_params)
clusters_j = self._check_json_response(r) clusters_j = self._check_json_response(r)
if not (self.global_pythonify or pythonify) or 'errors' in clusters_j: if not (self.global_pythonify or pythonify) or 'errors' in clusters_j:
return clusters_j return clusters_j