webhook 通知 body 增加 text/plain 类型,修复多定时任务服务重启未初始化

This commit is contained in:
whyour
2023-11-22 22:43:48 +08:00
parent f056b611a4
commit de9e9ce627
7 changed files with 29 additions and 19 deletions
+3 -1
View File
@@ -1350,7 +1350,9 @@ function parseHeaders(headers) {
}
function parseBody(body, contentType) {
if (!body) return '';
if (contentType === 'text/plain' || !body) {
return body;
}
const parsed = {};
let key;