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/08/01 21:53:44 UTC

cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPSender.java

rubys       01/08/01 12:53:44

  Modified:    java/src/org/apache/axis/transport/http HTTPSender.java
  Log:
  The FIRST colon separates the name from the value in MIME headers.
  Submitted by:	Russell Butek <bu...@us.ibm.com>
  
  Revision  Changes    Path
  1.9       +2 -1      xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
  
  Index: HTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HTTPSender.java	2001/07/16 00:49:10	1.8
  +++ HTTPSender.java	2001/08/01 19:53:44	1.9
  @@ -258,7 +258,7 @@
               for ( ;; ) {
                   if ( (b = (byte) inp.read()) == -1 ) break ;
                   if ( b != '\r' && b != '\n' ) {
  -                    if ( b == ':' ) colonIndex = len ;
  +                    if ( b == ':' && colonIndex == -1 ) colonIndex = len ;
                       lastB = (buf[len++] = b);
                   }
                   else if ( b == '\r' )
  @@ -268,6 +268,7 @@
                       if ( colonIndex != -1 ) {
                           name = new String( buf, 0, colonIndex );
                           value = new String( buf, colonIndex+1, len-1-colonIndex );
  +                        colonIndex = -1 ;
                       }
                       else {
                           name = new String( buf, 0, len );