You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2007/07/30 12:49:20 UTC
svn commit: r560920 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
Author: deepal
Date: Mon Jul 30 03:49:16 2007
New Revision: 560920
URL: http://svn.apache.org/viewvc?view=rev&rev=560920
Log:
fixing 3012
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java?view=diff&rev=560920&r1=560919&r2=560920
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java Mon Jul 30 03:49:16 2007
@@ -121,9 +121,10 @@
if (log.isDebugEnabled()) {
log.debug("contentType from the OMOutputFormat =" + contentType);
}
- if (encoding != null) {
- contentType += "; charset=" + encoding;
- }
+ if (encoding != null && contentType != null &&
+ !contentType.contains(HTTPConstants.MEDIA_TYPE_MULTIPART_RELATED)) {
+ contentType += "; charset=" + encoding;
+ }
// action header is not mandated in SOAP 1.2. So putting it, if
// available
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org