This commit is contained in:
orion 2024-06-01 15:40:27 -05:00
parent 731a44c370
commit 8a2d27a005
Signed by: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -5,7 +5,7 @@ export const blobArrayBufferImpl = b => () => b.arrayBuffer()
const formDataValueSize = v => (typeof v === 'string' ? v.length : v.size)
/** @type {(_: ArrayBuffer | FormData) => () => number} */
export const rawRequestBodySize = body => () =>
export const rawBodySize = body => () =>
body instanceof ArrayBuffer
? body.byteLength
: body instanceof FormData