slackapi / python-slack-events-api

Slack Events API adapter for Python (Flask required)
https://api.slack.com/events
MIT License
343 stars 116 forks source link

Update request signing to work for any content type #44

Closed shaydewael closed 5 years ago

shaydewael commented 5 years ago

Summary

Fixes #41

Server is currently looking in request.data for raw request body in the verify_signature method. This is fine for intended functionality (for use with the Events API), but developers that want to use the function to handle other content-types (like with Slash commands) can't right now. This fixes that by using request.get_data() instead, which works regardless of content-type 😄

Requirements (place an x in each [ ])

wooddar commented 5 years ago

🎉