You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand the docs, if a resource function's return value is converted to JSON, also the mimetype will be automatically set to application/json. However, that is not the case: It's always text/plain, both in my own code and in the desktop.py example.
Am I misunderstanding the docs or is there something missing here?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I understand the docs, if a resource function's return value is converted to JSON, also the mimetype will be automatically set to
application/json. However, that is not the case: It's alwaystext/plain, both in my own code and in thedesktop.pyexample.Am I misunderstanding the docs or is there something missing here?
Beta Was this translation helpful? Give feedback.
All reactions