From: Jules G. <jul...@us...> - 2002-08-01 20:47:39
|
User: jules_gosnell Date: 02/08/01 13:47:38 Modified: src/main/org/jboss/test/web/test HttpClient.java Log: ensure that request content is read right to the end... Revision Changes Path 1.6 +3 -3 jbosstest/src/main/org/jboss/test/web/test/HttpClient.java Index: HttpClient.java =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/HttpClient.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- HttpClient.java 16 Feb 2002 05:36:56 -0000 1.5 +++ HttpClient.java 1 Aug 2002 20:47:38 -0000 1.6 @@ -16,7 +16,7 @@ /** A simple socket based client for accesing http content. * * @author Sco...@jb... - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ */ public class HttpClient { @@ -127,8 +127,8 @@ content = new StringBuffer(); while( (line = reader.readLine()) != null ) { - if( line.length() == 0 ) - break; + // if( line.length() == 0 ) + // break; content.append(line); content.append('\n'); } |