Skip to content

Consider empty dicts in json requests #417

@Kamforka

Description

@Kamforka

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:

if json:

to

if json is not None:

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions