Skip to content

Commit 242c8e8

Browse files
navinpaiRoach
authored andcommitted
[MINOR] Decode byte stream into utf-8 (#18)
1 parent 80e75f5 commit 242c8e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slackeventsapi/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def event():
1414
return make_response("These are not the slackbots you're looking for.", 404)
1515

1616
# Parse the request payload into JSON
17-
event_data = json.loads(request.data)
17+
event_data = json.loads(request.data.decode('utf-8'))
1818

1919
# Echo the URL verification challenge code
2020
if "challenge" in event_data:

0 commit comments

Comments
 (0)