velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1773488 - /velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/VelocityViewServlet.java
Date Fri, 09 Dec 2016 23:31:54 GMT
Author: cbrisson
Date: Fri Dec  9 23:31:54 2016
New Revision: 1773488

URL: http://svn.apache.org/viewvc?rev=1773488&view=rev
Log:
[tools] use RuntimeConstants instead of hardcoded strings

Modified:
    velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/VelocityViewServlet.java

Modified: velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/VelocityViewServlet.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/VelocityViewServlet.java?rev=1773488&r1=1773487&r2=1773488&view=diff
==============================================================================
--- velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/VelocityViewServlet.java
(original)
+++ velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/VelocityViewServlet.java
Fri Dec  9 23:31:54 2016
@@ -260,7 +260,7 @@ public class VelocityViewServlet extends
         // use <Connector ... URIEncoding="UTF-8">)
         try
         {
-            request.setCharacterEncoding(getVelocityProperty("input.encoding", "UTF-8"));
+            request.setCharacterEncoding(getVelocityProperty(RuntimeConstants.INPUT_ENCODING,
RuntimeConstants.ENCODING_DEFAULT));
         }
         catch (UnsupportedEncodingException uee)
         {



Mime
View raw message