Closed AlbertoOS closed 7 years ago
I don't think Werkzeug parses the body as form data when it's passed as json
.
You can probably use get_data
to get the body data then manually load it for now. I'll add a custom form data parser that runs on content-type application/json.
Latest commit should allow this. Untested, please let me know if it breaks.
Testing with a request
requests.post('http://localhost:4444/test', json={'message': 'test'})
gives meImmutableMultiDict([])
on version 2.0.2 but on version 1.9.2.1 it works and displays{'message': 'test'}
.