- Set the cpg.response.wfile and the cpg.response.sendResponse attributes *before* calling initRequest. This way filters that are called on the input chain can access the information (specially wfile) that is needed.
- Set the cpg.response.wfile and the cpg.response.sendResponse attributes *before* calling initRequest. This way filters that are called on the input chain can access the information (specially wfile) that is needed.

- Also, made sure that the handleRequest call uses the value from cpg.response.wfile instead of the local wfile; this allows the filter to redirect or to wrap the original wfile and set the new one on cpg.response.wfile.

Safihre/cherrypy,cherrypy/cherrypy,cherrypy/cherrypy,Safihre/cherrypy,cherrypy/cheroot