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();