Skip to content

Commit b5cb9ea

Browse files
committed
fixup
1 parent 2626127 commit b5cb9ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/fetch/body.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ function extractBody (object, keepalive = false) {
202202
}
203203
})
204204
} else if (!stream) {
205+
// TODO: Spec doesn't say anything about this?
205206
stream = new ReadableStream({
206207
async start (c) {
207-
c.enqueue(Buffer.from(new Uint8Array(source)))
208+
c.enqueue(new Uint8Array(Buffer.from(source)))
208209
queueMicrotask(() => {
209210
c.close()
210211
})

0 commit comments

Comments
 (0)