[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/coyote ...
Ron Sigal
ron_sigal at yahoo.com
Fri Feb 23 03:46:06 EST 2007
User: rsigal
Date: 07/02/23 03:46:06
Modified: src/main/org/jboss/remoting/transport/coyote Tag:
remoting_2_x CoyoteInvoker.java
Log:
JBREM-707: versionedRead() creates a new InvocationRequest for OPTIONS invocations with empty body.
Revision Changes Path
No revision
No revision
1.23.2.2 +3 -1 JBossRemoting/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CoyoteInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java,v
retrieving revision 1.23.2.1
retrieving revision 1.23.2.2
diff -u -b -r1.23.2.1 -r1.23.2.2
--- CoyoteInvoker.java 13 Jan 2007 12:42:34 -0000 1.23.2.1
+++ CoyoteInvoker.java 23 Feb 2007 08:46:06 -0000 1.23.2.2
@@ -443,7 +443,9 @@
receivedInvocationRequest.set(FALSE);
InvocationRequest invocationRequest = null;
- if (req.method().equals("GET") || req.method().equals("HEAD"))
+ MessageBytes method = req.method();
+ if (method.equals("GET") || method.equals("HEAD")
+ || (method.equals("OPTIONS") && req.getContentLength() <= 0))
{
invocationRequest = createNewInvocationRequest(request, response, null);
} else
More information about the jboss-cvs-commits
mailing list