axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r232390 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Date Fri, 12 Aug 2005 20:53:45 GMT
Author: dims
Date: Fri Aug 12 13:53:43 2005
New Revision: 232390

URL: http://svn.apache.org/viewcvs?rev=232390&view=rev
Log:
don't compute the size if we are using mtom (use chunking). This is better than sending the
wrong size.


Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?rev=232390&r1=232389&r2=232390&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Fri Aug 12 13:53:43 2005
@@ -271,7 +271,7 @@
 
         public long getContentLength() {
             try {
-                if (chuncked) {
+                if (chuncked || doingMTOM) {
                     return -1;
                 } else {
                     if (bytes == null) {



Mime
View raw message