From 7e3146268ea776206f146473ffd172ddc18cbbf8 Mon Sep 17 00:00:00 2001 From: shankar Date: Mon, 19 Jul 2010 09:45:16 +0000 Subject: Fixing MTOM Issue.. git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@965406 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/http/util/http_transport_utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/transport/http/util/http_transport_utils.c b/src/core/transport/http/util/http_transport_utils.c index 90acc60..ab342b5 100644 --- a/src/core/transport/http/util/http_transport_utils.c +++ b/src/core/transport/http/util/http_transport_utils.c @@ -382,7 +382,10 @@ axis2_http_transport_utils_process_http_post_request( 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); -- cgit v1.1-32-gdbae