You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/09/19 17:19:25 UTC

svn commit: r447878 - in /webservices/axis2/trunk/c/modules/core/transport/http: http_transport_utils.c server/apache2/apache2_worker.c

Author: samisa
Date: Tue Sep 19 08:19:24 2006
New Revision: 447878

URL: http://svn.apache.org/viewvc?view=rev&rev=447878
Log:
Fixed REST problems with Apache 

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
    webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?view=diff&rev=447878&r1=447877&r2=447878
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Tue Sep 19 08:19:24 2006
@@ -477,7 +477,7 @@
     AXIS2_PARAM_CHECK(env->error, msg_ctx, AXIS2_FALSE);
     AXIS2_PARAM_CHECK(env->error, in_stream, AXIS2_FALSE);
     AXIS2_PARAM_CHECK(env->error, out_stream, AXIS2_FALSE);
-    AXIS2_PARAM_CHECK(env->error, content_type, AXIS2_FALSE);
+    /*AXIS2_PARAM_CHECK(env->error, content_type, AXIS2_FALSE);*/
     AXIS2_PARAM_CHECK(env->error, request_uri, AXIS2_FALSE);
     AXIS2_PARAM_CHECK(env->error, request_params, AXIS2_FALSE);
 

Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c?view=diff&rev=447878&r1=447877&r2=447878
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/apache2/apache2_worker.c Tue Sep 19 08:19:24 2006
@@ -337,7 +337,12 @@
         AXIS2_STREAM_FREE(request_body, env);
         request_body = NULL;
     }
-    AXIS2_MSG_CTX_FREE(msg_ctx, env);
+    
+    if (send_status != HTTP_INTERNAL_SERVER_ERROR)
+    {
+        AXIS2_MSG_CTX_FREE(msg_ctx, env);
+    }
+
     msg_ctx = NULL;
     return send_status;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org