From 7555a9acf7b1c5808c32fba34a2ab82066d5845e Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Tue, 18 May 2021 11:01:03 +0800 Subject: [PATCH] addon web content-type --- addon/web/client/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/web/client/src/utils.ts b/addon/web/client/src/utils.ts index 2865a13..359981c 100644 --- a/addon/web/client/src/utils.ts +++ b/addon/web/client/src/utils.ts @@ -5,7 +5,7 @@ export const isTextBody = (payload: IRequest | IResponse) => { if (!payload.header) return false if (!payload.header['Content-Type']) return false - return /text|javascript|json|x-www-form-urlencoded/.test(payload.header['Content-Type'].join('')) + return /text|javascript|json|x-www-form-urlencoded|xml/.test(payload.header['Content-Type'].join('')) } export const getSize = (len: number) => {