Author: shankar
Date: Mon Jul 19 09:45:16 2010
New Revision: 965406

URL: http://svn.apache.org/viewvc?rev=965406&view=rev
Log:
Fixing MTOM Issue.. 

Modified:
    axis/axis2/c/core/trunk/src/core/transport/http/util/http_transport_utils.c

Modified: 
axis/axis2/c/core/trunk/src/core/transport/http/util/http_transport_utils.c
URL: 
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/transport/http/util/http_transport_utils.c?rev=965406&r1=965405&r2=965406&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/transport/http/util/http_transport_utils.c 
(original)
+++ axis/axis2/c/core/trunk/src/core/transport/http/util/http_transport_utils.c 
Mon Jul 19 09:45:16 2010
@@ -382,7 +382,10 @@ axis2_http_transport_utils_process_http_
         encoding_header = (axis2_http_header_t *)axutil_hash_get(headers,
             AXIS2_HTTP_HEADER_TRANSFER_ENCODING, AXIS2_HASH_KEY_STRING);
 
-        if(encoding_header)
+        if((encoding_header)&& (!strstr(content_type, 
AXIS2_HTTP_HEADER_ACCEPT_MULTIPART_RELATED)))
+            /* (strstr(content_type, 
AXIS2_HTTP_HEADER_ACCEPT_MULTIPART_RELATED)) is a hack. we have to fix it 
properly. When 
+            combining chunking and MTOM it is not working. Normal MTOM 
processing takes care of the chunking as well. so, 
+            we don't need to specifically read using chunked_stream. But, this 
is not a proper way to do it. FIX IT */
         {
             axis2_char_t *encoding_value = NULL;
             encoding_value = axis2_http_header_get_value(encoding_header, env);


Reply via email to