zfcampus/zf-api-problem — pull request #7 by weierophinney (2013-11-06 18:55:06+00:00)
Title: Ensure we have a valid event before acting

- Moved logic for determining if we have:
- an error
- with an HTTP request
- that Accepts a JSON mediatype
to a new method.
- onRender() and onDispatchError() both use the new method.

Fixes an issue reported by @spiffyjr in IRC.