Skip to content

Conversation

MarkWine
Copy link
Contributor

@MarkWine MarkWine commented Jun 6, 2024

Closes #963

This approach removes the attempt to parse json if the content type is not application/json. One one hand, this, in addition to allowing reqparse to be used with Werkzeug >= 2.1.0, matches the behavior of newer versions of Flask/Werkzeug.

On the other hand, this may introduce unexpected behavior if users pin an older version of Flask but update Flask-Restful, as they will no longer parse json when the content type is different. Backwards compatibility could be more easily maintained by handling the get_json() exception, but this seems like a less explicit solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant