From 08441b855d8cfbe7edd41811c8c719e5fae01f83 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 19 Oct 2020 17:01:36 +0200 Subject: fix(op_crates/fetch): Body.body should be stream of Uint8Array (#8030) --- op_crates/fetch/26_fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op_crates/fetch') diff --git a/op_crates/fetch/26_fetch.js b/op_crates/fetch/26_fetch.js index 88744981b..887e329f9 100644 --- a/op_crates/fetch/26_fetch.js +++ b/op_crates/fetch/26_fetch.js @@ -786,7 +786,7 @@ this._stream = new ReadableStream({ start(controller) { - controller.enqueue(buf); + controller.enqueue(new Uint8Array(buf)); controller.close(); }, }); -- cgit v1.2.3