You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by th...@apache.org on 2006/09/06 10:59:26 UTC
svn commit: r440659 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
Author: thilina
Date: Wed Sep 6 01:59:25 2006
New Revision: 440659
URL: http://svn.apache.org/viewvc?view=rev&rev=440659
Log:
Fixing the invalid content-type generation.
Setting of empty actions with "" created invalid content-type headers which cannot be parsed by java mail.
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java?view=diff&rev=440659&r1=440658&r2=440659
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java Wed Sep 6 01:59:25 2006
@@ -250,8 +250,8 @@
}
}
- public String getContentType() {
- String encoding = format.getCharSetEncoding();
+ public String getContentType() {
+ String encoding = format.getCharSetEncoding();
String contentType = format.getContentType();
if (encoding != null) {
@@ -260,10 +260,9 @@
// action header is not mandated in SOAP 1.2. So putting it, if available
if (!msgCtxt.isSOAP11() && (soapActionString != null)
- && !"".equals(soapActionString.trim())) {
+ && !"".equals(soapActionString.trim()) && ! "\"\"".equals(soapActionString.trim())) {
contentType = contentType + ";action=\"" + soapActionString + "\";";
}
-
return contentType;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org