From a2fd08b7dcb1251dd290c8628f45cd1089481554 Mon Sep 17 00:00:00 2001 From: Joe Marshall Date: Thu, 3 Nov 2022 16:03:37 +0000 Subject: [PATCH] fix for streaming js --- pyodide_http/_streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyodide_http/_streaming.py b/pyodide_http/_streaming.py index 8d3141d..212ff1f 100644 --- a/pyodide_http/_streaming.py +++ b/pyodide_http/_streaming.py @@ -209,7 +209,7 @@ def send(self, request): headers = request.headers body = request.body - fetch_data = {"headers": headers, "body": body, "method": request.method} + fetch_data = {"headers": headers, "body": to_js(body), "method": request.method} # start the request off in the worker timeout = int(1000 * request.timeout) if request.timeout > 0 else None shared_buffer = js.SharedArrayBuffer.new(1048576)