in src/connection/UndiciConnection.ts [218:225]
for await (const chunk of response.body) {
currentLength += Buffer.byteLength(chunk)
if (currentLength > maxResponseSize) {
response.body.destroy()
throw new RequestAbortedError(`The content length (${currentLength}) is bigger than the maximum allowed string (${maxResponseSize})`)
}
payload += chunk as string
}