(stream)
| 27 | }); |
| 28 | |
| 29 | const collect = async (stream) => { |
| 30 | const chunks = []; |
| 31 | for await (const chunk of stream) { |
| 32 | chunks.push(Buffer.from(chunk)); |
| 33 | } |
| 34 | return Buffer.concat(chunks).toString(class="st">'utf8'); |
| 35 | }; |
| 36 | |
| 37 | describe(class="st">'formDataToStream', () => { |
| 38 | it(class="st">'should strip CRLF sequences from blob.type to prevent multipart header injection', async () => { |
no test coverage detected