In order to change the response header's content type I dug through the code somewhat and discovered the Controller's $headers variable which get applied in the server method. But adding my header params to this didn't have any effect until I noticed that within the Controller::serve method a call is made to the method Response::addHeader -> but this method is protected and therefore can't be called. If I change this to public it works... is this possibly a bug or is there another preferred way to modify headers?
cheers
This is a bug, thanks for the catch. The method should be public and you are correct in using it. Thanks!
reply