mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复 text/plain 通知消息替换
This commit is contained in:
1 parent
2e7f3a1578
commit
510534ee0c
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -399,7 +399,7 @@ export function parseBody(
|
||||
valueFormatFn?: (v: string) => string,
|
||||
) {
|
||||
if (contentType === 'text/plain' || !body) {
|
||||
return body;
|
||||
return valueFormatFn && body ? valueFormatFn(body) : body;
|
||||
}
|
||||
|
||||
const parsed = parseString(body, valueFormatFn);
|
||||
|
||||
Reference in new issue
Block a user