emqx/changes/v5.0.14/fix-9705.zh.md

6 lines
470 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

删除 Webhook 的默认值。
在此修复之前Webhook 的 `body` 字段的默认值为 `${payload}`,但规则中除了消息发布之外的其他事件的可用字段中
都没有 `payload` 字段,所以这种情况下 Webhook 将发送消息正文为 "undefined" 的字符串到 HTTP 服务。
此修复移除了 `body` 字段的默认值,当未配置 `body` 字段的时候Webhook 将以 JSON object 的格式发送
当前事件的全部可用字段。