mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
webhook 通知 body 增加 text/plain 类型,修复多定时任务服务重启未初始化
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user