修复 text/plain 通知消息替换

This commit is contained in:
whyour
2024-04-16 10:48:33 +08:00
parent 2e7f3a1578
commit 510534ee0c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1379,7 +1379,7 @@ function parseHeaders(headers) {
function parseBody(body, contentType, valueFormatFn) {
if (contentType === 'text/plain' || !body) {
return body;
return valueFormatFn && body ? valueFormatFn(body) : body;
}
const parsed = parseString(body, valueFormatFn);