finalizeResponse();
if (getContentType() == null) {
contentType(HttpConstants.ContentType.TEXT_HTML);
}
try {
<BUG>if (content != null) {
httpServletResponse.getWriter().append(content);</BUG>
}
<BUG>log.trace("Response committed");
httpServletResponse.flushBuffer();
} catch (IOException e) {</BUG>
throw new PippoRuntimeException(e);

finalizeResponse();
try {
IoUtils.copy(input, httpServletResponse.getOutputStream());
if (chunked) {
httpServletResponse.flushBuffer();
