Since TheHive v5.5.x the API errors out when a json request doesn't contain the application/json header.
The alert.promote_to_case method suffers from this error when there are no additional fields specified, as then session won't add the right json headers to the request.
To fix this on the session level it should be enough to replace the existing check:
to
Since TheHive v5.5.x the API errors out when a json request doesn't contain the
application/jsonheader.The
alert.promote_to_casemethod suffers from this error when there are no additional fields specified, as then session won't add the right json headers to the request.To fix this on the session level it should be enough to replace the existing check:
to