Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Response.text instead of Response.content #851

Merged

Conversation

lukaszrzasik
Copy link
Contributor

In python3 bytes and string are no longer the same thing.
Response.content returns bytes and json.loads expects string.
Reponse.text returns string and can be used instead of Response.content

In python3 bytes and string are no longer the same thing.
Response.content returns bytes and json.loads expects string.
Reponse.text returns string and can be used instead of Response.content
@dadokkio dadokkio changed the base branch from master to develop September 15, 2020 08:40
@dadokkio dadokkio merged commit dbb9bd1 into TheHive-Project:develop Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants