WW-4391 reverts changes as this breaks WW-4420

This commit is contained in:
Lukasz Lenart
2014-11-17 11:39:38 +01:00
parent 77c76dc691
commit e1025a207d
@@ -343,10 +343,7 @@ public class FreemarkerResult extends StrutsResultSupport {
contentType = "text/html";
}
String encoding = response.getCharacterEncoding();
if(encoding == null) {
encoding = template.getEncoding();
}
String encoding = template.getEncoding();
if (encoding != null) {
contentType = contentType + "; charset=" + encoding;