Skip to content

Commit

Permalink
Merge pull request #19 from joemarshall/binary_json_fix
Browse files Browse the repository at this point in the history
fix for streaming js body
  • Loading branch information
koenvo authored Nov 9, 2022
2 parents 53690d1 + a2fd08b commit 652758a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyodide_http/_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 652758a

Please sign in to comment.