You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by am...@apache.org on 2010/05/15 09:12:21 UTC

svn commit: r944582 - /axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java

Author: amilas
Date: Sat May 15 07:12:21 2010
New Revision: 944582

URL: http://svn.apache.org/viewvc?rev=944582&view=rev
Log:
apply the patch for AXIS2-4714

Modified:
    axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java

Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java?rev=944582&r1=944581&r2=944582&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java (original)
+++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPSender.java Sat May 15 07:12:21 2010
@@ -273,6 +273,10 @@ public class HTTPSender extends Abstract
         if (statusCode == HttpStatus.SC_OK) {
             processResponse(method, msgContext);
         } else if (statusCode == HttpStatus.SC_ACCEPTED) {
+        	/* When an HTTP 202 Accepted code has been received, this will be the case of an execution 
+        	 * of an in-only operation. In such a scenario, the HTTP response headers should be returned,
+        	 * i.e. session cookies. */
+        	obtainHTTPHeaderInformation(method, msgContext);
         } else if (statusCode == HttpStatus.SC_INTERNAL_SERVER_ERROR ||
                 statusCode == HttpStatus.SC_BAD_REQUEST) {
             Header contenttypeHeader =