Fixing error in createHtmlResponseWriter

The call to response.setContentType needs to happen while the Response is in the
READY state. The call Response.getOutputStream take is out of the READY state.
1 file changed