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

Fix the bug that the return of request.get_data() is not string. #154

Merged
merged 1 commit into from
May 2, 2016

Conversation

tp6vup54
Copy link

@tp6vup54 tp6vup54 commented May 2, 2016

I just find that in the flask webhook example, request.get_data() return a value whose type is 'byte' instead of 'string'. And it will cause an error shown below

ValueError: json_type should be a json dict or string.

This commit is a patch that decode the byte value into string using decode('utf-8').

@eternnoir eternnoir merged commit 700b869 into eternnoir:master May 2, 2016
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.

3 participants