0

Добавлен Content-Type

resolve #8
This commit is contained in:
2015-12-03 11:39:13 +00:00
parent 4333e770a6
commit 0df6b812b5
2 changed files with 2 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ public class IndexServlet extends HttpServlet {
}
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
try {
template.process("index.html", model, response.getWriter());
} catch (IOException e) {

View File

@@ -39,6 +39,7 @@ public class TemplateServlet extends HttpServlet {
model.put("rutext", "Поиск кино по пиратским кинотеатрам");
resp.setCharacterEncoding("UTF-8");
resp.setContentType("text/html;charset=UTF-8");
try {
template.process("simple_template" + fileName, model, resp.getWriter());
} catch (IOException e) {