fix(health/rocketchat): add missing "Content-Type: application/json" header (#20954)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Ilya Mashchenko committed
Sep 10, 2025 at 20:42 UTC
dccc713baf862f10540f04fb9121752bf04a1807
1 file changed
+1
-1
src/health/notifications/alarm-notify.sh.in
+1
-1
@@ -1823,7 +1823,7 @@ send_rocketchat() {
1823
EOF
1824
)"
1825
1826
- httpcode=$(docurl -X POST --data-urlencode "payload=${payload}" "${webhook}")
1826
+ httpcode=$(docurl -X POST -H "Content-Type: application/json" --data "${payload}" "${webhook}")
1827
if [ "${httpcode}" = "200" ]; then
1828
info "sent rocketchat notification to '${channel}' for ${notification_description}"
1829
sent=$((sent + 1))