diff options
author | shankar | 2010-07-19 09:45:16 +0000 |
---|---|---|
committer | shankar | 2010-07-19 09:45:16 +0000 |
commit | 7e3146268ea776206f146473ffd172ddc18cbbf8 (patch) | |
tree | bbe3553800eb7596bd27283fa0e69b550fb27773 /src | |
parent | 8aae3360e080fa95646de9f7e31c255106556167 (diff) | |
download | axis2c-7e3146268ea776206f146473ffd172ddc18cbbf8.tar.gz axis2c-7e3146268ea776206f146473ffd172ddc18cbbf8.tar.bz2 |
Fixing MTOM Issue..
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@965406 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/core/transport/http/util/http_transport_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |