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

Add Content-Type header to slack request for mattermost compatibility #153

Merged
merged 2 commits into from Feb 3, 2017

Conversation

ldanz
Copy link
Contributor

@ldanz ldanz commented Jan 16, 2017

Mattermost tries to be API-compatible with Slack, but does not (currently) support incoming webhooks in JSON format without the 'Content-Type': 'application/json' header. Given that the Slack API documentation (not to mention RFC 7231) also specifies a preference for content type to be made explicit, adding the header here seems like reasonable way to make the webhooks handler work for Mattermost while continuing to work for Slack.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 65.03% when pulling 833f06a on ldanz:slack_handler_content_type into f638f26 on klen:develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 65.03% when pulling 5441528 on ldanz:slack_handler_content_type into f638f26 on klen:develop.

@garrettheel
Copy link
Collaborator

Looks good, thanks!

@garrettheel garrettheel merged commit 7757352 into klen:develop Feb 3, 2017
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.

None yet

3 participants