sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject svn commit: r991319 - /sling/trunk/contrib/scripting/velocity/src/main/java/org/apache/sling/scripting/velocity/VelocityTemplatesScriptEngine.java
Date Tue, 31 Aug 2010 20:31:50 GMT
Author: mykee
Date: Tue Aug 31 20:31:50 2010
New Revision: 991319

URL: http://svn.apache.org/viewvc?rev=991319&view=rev
Log:
SLING-1709 Velocity scripts should be able to handle other than GET requests

Modified:
    sling/trunk/contrib/scripting/velocity/src/main/java/org/apache/sling/scripting/velocity/VelocityTemplatesScriptEngine.java

Modified: sling/trunk/contrib/scripting/velocity/src/main/java/org/apache/sling/scripting/velocity/VelocityTemplatesScriptEngine.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/velocity/src/main/java/org/apache/sling/scripting/velocity/VelocityTemplatesScriptEngine.java?rev=991319&r1=991318&r2=991319&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/velocity/src/main/java/org/apache/sling/scripting/velocity/VelocityTemplatesScriptEngine.java
(original)
+++ sling/trunk/contrib/scripting/velocity/src/main/java/org/apache/sling/scripting/velocity/VelocityTemplatesScriptEngine.java
Tue Aug 31 20:31:50 2010
@@ -72,12 +72,6 @@ public class VelocityTemplatesScriptEngi
             throw new ScriptException("SlingScriptHelper missing from bindings");
         }
 
-        // ensure GET request
-        if (!"GET".equals(helper.getRequest().getMethod())) {
-            throw new ScriptException(
-                "FreeMarker templates only support GET requests");
-        }
-
         String scriptName = helper.getScript().getScriptResource().getPath();
 
         final ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();



Mime
View raw message