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 ru...@apache.org on 2001/05/03 20:28:31 UTC
cvs commit: xml-axis/java/src/org/apache/axis/transport/http AxisServlet.java
rubys 01/05/03 11:28:30
Modified: java/src/org/apache/axis/transport/http AxisServlet.java
Log:
Hopefully in the future we will stream/chunk, but for now since we know
the content length, lets send it along.
Revision Changes Path
1.17 +4 -1 xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
Index: AxisServlet.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- AxisServlet.java 2001/04/29 08:24:57 1.16
+++ AxisServlet.java 2001/05/03 18:28:27 1.17
@@ -190,6 +190,9 @@
/***********************************/
msg = msgContext.getResponseMessage();
res.setContentType( "text/xml" );
- res.getWriter().println( msg != null ? msg.getAs("String") : "No data" );
+ String response = (String) msg.getAs("String");
+ if (msg == null) msg="No data";
+ res.setContentLength( response.length() );
+ res.getWriter().print( response );
}
}