mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
callbacks/slack: Explicitly set Content-Type header (#51824)
There are other chat systems with hook implementations more or less compatible with Slack, such as Rocket.Chat. The latter requires the Content-Type header to be set to "application/json" (the body is JSON). Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
4
changelogs/fragments/51824-slack-req-content-type.yaml
Normal file
4
changelogs/fragments/51824-slack-req-content-type.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
minor_changes:
|
||||
- >-
|
||||
slack: Explicitly set Content-Type header to "application/json" for
|
||||
improved compatibility with non-Slack chat systems
|
||||
Reference in New Issue
Block a user