incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r905486 - /sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java
Date Tue, 02 Feb 2010 01:09:07 GMT
Author: ieb
Date: Tue Feb  2 01:09:07 2010
New Revision: 905486

URL: http://svn.apache.org/viewvc?rev=905486&view=rev
Log:
SLING-1340 Allow header was not getting set.

Modified:
    sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java

Modified: sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java?rev=905486&r1=905485&r2=905486&view=diff
==============================================================================
--- sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java
(original)
+++ sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java
Tue Feb  2 01:09:07 2010
@@ -198,7 +198,7 @@
             try {
                 if (!allowTrace && "TRACE".equals(request.getMethod())) {
                     HttpServletResponse response = (HttpServletResponse) res;
-                    response.sendError(405);
+                    response.setStatus(405);
                     response.setHeader("Allow", "GET, HEAD, POST, PUT, DELETE, OPTIONS");
                     return;
                 }



Mime
View raw message