koenvo / pyodide-http

Provides patches for widely used http libraries to make them work in Pyodide environments like JupyterLite
MIT License
78 stars 15 forks source link

Body passed with json argument is send as binary #15

Closed nicornk closed 2 years ago

nicornk commented 2 years ago

When run with pyodide-http

image

When run with python

image

I am trying to create a fix and test for it, but struggling with calling SSL protected websites in pyodide. In jupyterlite, SSL works.

I can also see that set_json https://github.com/koenvo/pyodide-http/blob/main/pyodide_http/_core.py#L41 is never called.

koenvo commented 2 years ago

Fixed in https://github.com/koenvo/pyodide-http/pull/16