Hi list, I'm writing a simple controller plugin, with which I intend to alter the response body. Altering the response body works fine, but I also want the plugin to react to only certain content types. However, in th dispatchLoopShutdown() method of the plugin (and in postDispatch() too for that matter):
$this->getResponse()->getHeaders(); gives me an empty array. The same with getRawHeaders(). The pages render nicely though, and the browser receives the proper headers. What could be the reason for the headers not being available to the plugin? I've looked through the docs and can't seem to find anything related to the stage at which the response object gets populated with headers. A quick look through the source and the mailing list archives didn't turn up anything either. Any pointers appreciated. Cheers, - Jarno
