micropython / micropython-lib

Core Python libraries ported to MicroPython
Other
2.4k stars 997 forks source link

urequests does not set Content-type to application/json when json parameter is not None #238

Closed nucflash closed 6 years ago

nucflash commented 6 years ago

urequests does not set Content-Type: application/json when the json parameter is set. This makes a receiving flask server unable to parse the request and return None for request.get_json()

nucflash commented 6 years ago

Duplicate of #239. Closing.