Collect output in temporary buffer before sending it to the response.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 07:31:01 +0000 (09:31 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 07:31:01 +0000 (09:31 +0200)
commita0060f0995fc196a6890905e01466501ad401323
treeb9ecad92bfd332d73cc8035d27a46eb15606a681
parent125e8e399e62384048753c684b168b14922d22d3
Collect output in temporary buffer before sending it to the response.

This has to be this way because HttpServletResponse.getOutputStream()
“commits” the response, making it impossible to set the content type and
encoding later on.
src/main/java/net/pterodactylus/demoscenemusic/core/TemplateServlet.java