Skip to content

Commit

Permalink
remove special case for text/plain
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Dec 7, 2019
1 parent b8813fe commit 3d5469f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connexion/apis/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def _serialize_data(cls, data, mimetype):
body = cls.jsonifier.dumps(data)
elif isinstance(data, str):
body = data
elif mimetype in [None, "text/plain"]:
elif mimetype is None:
try:
# try as json by default
body = cls.jsonifier.dumps(data)
Expand Down

0 comments on commit 3d5469f

Please sign in to comment.