addon web content-type

addon-dailer
lqqyt2423 4 years ago
parent 1513c39725
commit 7555a9acf7

@ -5,7 +5,7 @@ export const isTextBody = (payload: IRequest | IResponse) => {
if (!payload.header) return false if (!payload.header) return false
if (!payload.header['Content-Type']) 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) => { export const getSize = (len: number) => {

Loading…
Cancel
Save