axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPSender.java
Date Fri, 03 Aug 2001 02:53:02 GMT
rubys       01/08/02 19:53:02

  Modified:    java/src/org/apache/axis/transport/http HTTPSender.java
  Log:
  Context length is in bytes not characters.  Another good catch by
  NAKAMURA, Hiroshi [mailto:nahi@keynauts.com]
  
  Revision  Changes    Path
  1.12      +3 -2      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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- HTTPSender.java	2001/08/02 16:50:02	1.11
  +++ HTTPSender.java	2001/08/03 02:53:02	1.12
  @@ -224,6 +224,7 @@
               }
               
               StringBuffer header = new StringBuffer();
  +            byte[] request = reqEnv.getBytes();
   
               header.append( HTTPConstants.HEADER_POST )
                .append(" " )
  @@ -232,7 +233,7 @@
                .append( " HTTP/1.0\r\n" )
                .append( HTTPConstants.HEADER_CONTENT_LENGTH )
                .append( ": " )
  -             .append( reqEnv.length() )
  +             .append( request.length )
                .append( "\r\n" )
                .append( HTTPConstants.HEADER_HOST )
                .append( ": " )
  @@ -249,7 +250,7 @@
               header.append("\r\n");
   
               out.write( header.toString().getBytes() );
  -            out.write( reqEnv.getBytes() );
  +            out.write( request );
   
               Debug.Print( 1, "XML sent:" );
               Debug.Print( 1, "---------------------------------------------------");
  
  
  

Mime
View raw message