Release 3.1.1
Reverts #342 to fix #361 -- renderData()
no longer flushes content or headers generated by the application.
This should solve any problems with cross-origin headers or some session-based bugs when using REST APIs powered by renderData()
.
The downside is that if you output any debugging code, it will be part of the response (as it was in 3.0) and potentially break your REST call.