Change Response::RaiseError to be processed last #6

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

Since response middleware are processed in the reverse order of being added, this makes Response::RaiseError be last, so the Exceptions raised have nicer, parsed bodies.

stve commented Nov 1, 2011

This could create a problem though since not all bodies are formatted in a way that would allow them to be parsed.

I’m not sure how this is a problem - the response handlers will only attempt to parse responses with the appropriate content type, so if a response body doesn’t match JSON, XML or HTML it will not be parsed.

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