Author: amila
Date: Tue May 12 22:33:29 2009
New Revision: 35646
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=35646

Log:
sending 202 accepted if the force header is set


Modified:
   
branches/synapse/1.3-wso2v1/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerWorker.java

Modified: 
branches/synapse/1.3-wso2v1/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerWorker.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.3-wso2v1/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerWorker.java?rev=35646&r1=35645&r2=35646&view=diff
==============================================================================
--- 
branches/synapse/1.3-wso2v1/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerWorker.java
        (original)
+++ 
branches/synapse/1.3-wso2v1/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerWorker.java
        Tue May 12 22:33:29 2009
@@ -202,9 +202,11 @@
         // is received to synapse. Otherwise we will not be able to support 
the single channel
         // invocation within the actual service and synapse for a dual channel 
request from the
         // client. This condition is a bit complex but cannot simplify any 
further.
+
         if (msgContext != null &&
             msgContext.getOperationContext() != null &&
-            
!msgContext.getOperationContext().getAxisOperation().isControlOperation()) {
+            
(!msgContext.getOperationContext().getAxisOperation().isControlOperation() ||
+             msgContext.isPropertyTrue(NhttpConstants.FORCE_SC_ACCEPTED))) {
 
             String respWritten = (String)
                 
msgContext.getOperationContext().getProperty(Constants.RESPONSE_WRITTEN);

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to