axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r560921 - /webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
Date Mon, 30 Jul 2007 10:49:52 GMT
Author: deepal
Date: Mon Jul 30 03:49:49 2007
New Revision: 560921

URL: http://svn.apache.org/viewvc?view=rev&rev=560921
Log:
fixing 3012

Modified:
    webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java

Modified: webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java?view=diff&rev=560921&r1=560920&r2=560921
==============================================================================
--- webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
(original)
+++ webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/transport/http/SOAPMessageFormatter.java
Mon Jul 30 03:49:49 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


Mime
View raw message