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

[v9.4.x] Slack: assume any non-JSON response is an incoming webhook #72

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

yuri-tceretian
Copy link
Contributor

backport of commit c151a6d from #67 to branch 9.4.x

* Fix typo in test name
* TestSendSlackRequest: test with content-type header
* Slack: assume any non-JSON response is an incoming webhook. Slack returns these responses as text/html while Mattermost returns them as text/plain.
# Conflicts:
#	alerting/notifier/channels/slack_test.go
@yuri-tceretian yuri-tceretian merged commit 518e63b into 9.4.x Mar 28, 2023
@yuri-tceretian yuri-tceretian deleted the backport-67-to-v9.4.x branch March 28, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants