New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pecan's JSON Serialization definitions are not respected for exception-based JSON-formatted responses #68

Closed
ryanpetrello opened this Issue Jun 20, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@ryanpetrello
Copy link
Member

ryanpetrello commented Jun 20, 2016

When a webob.HTTPException is raised in a pecan controller, pecan has logic that returns a nicely formatted HTML response. If the client specifies Accept: application/json, the exception is formatted using Python's JSON model. This code should respect pecan's support for JSON type registration (it currently doesn't):

http://pecan.readthedocs.io/en/latest/jsonify.html

@ryanpetrello

This comment has been minimized.

Copy link
Member

ryanpetrello commented Jun 20, 2016

Fixed via #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment