mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
fix missing content-type
This commit is contained in:
@@ -63,6 +63,12 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
public class TemplateServlet extends HttpServlet
|
public class TemplateServlet extends HttpServlet
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
public static final String CONTENT_TYPE = "text/html";
|
||||||
|
|
||||||
|
/** Field description */
|
||||||
|
public static final String ENCODING = "UTF-8";
|
||||||
|
|
||||||
/** Field description */
|
/** Field description */
|
||||||
private static final long serialVersionUID = 3578555653924091546L;
|
private static final long serialVersionUID = 3578555653924091546L;
|
||||||
|
|
||||||
@@ -132,6 +138,8 @@ public class TemplateServlet extends HttpServlet
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
response.setCharacterEncoding(ENCODING);
|
||||||
|
response.setContentType(CONTENT_TYPE);
|
||||||
writer = response.getWriter();
|
writer = response.getWriter();
|
||||||
templateHandler.render(templateName, writer, params);
|
templateHandler.render(templateName, writer, params);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user