axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r359085 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
Date Mon, 26 Dec 2005 18:44:38 GMT
Author: dims
Date: Mon Dec 26 10:44:35 2005
New Revision: 359085

URL: http://svn.apache.org/viewcvs?rev=359085&view=rev
Log:
Hmm, why do we need an intermediate byte store?


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

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java?rev=359085&r1=359084&r2=359085&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java
Mon Dec 26 10:44:35 2005
@@ -138,16 +138,6 @@
                     return true;
                 }
             } else {
-                ByteArrayOutputStream baosIn = new ByteArrayOutputStream();
-                byte[]                bytes = new byte[8192];
-                int size;
-
-                while ((size = inStream.read(bytes)) > 0) {
-                    baosIn.write(bytes, 0, size);
-                }
-
-                inStream = new ByteArrayInputStream(baosIn.toByteArray());
-
                 // It is POST, handle it
                 HTTPTransportUtils.processHTTPPostRequest(msgContext, inStream, baos,
                         request.getContentType(), soapAction, request.getRequestLine().getUri());



Mime
View raw message