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/02 16:20:06 UTC

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

rubys       01/08/02 07:20:06

  Modified:    java/src/org/apache/axis/transport/http AxisServlet.java
  Log:
  return correct content-length when multi-byte-encoded-char in response
  Submitted by:	NAKAMURA, Hiroshi [mailto:nahi@keynauts.com]
  
  Revision  Changes    Path
  1.33      +1 -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.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- AxisServlet.java	2001/07/30 13:24:27	1.32
  +++ AxisServlet.java	2001/08/02 14:20:06	1.33
  @@ -205,7 +205,7 @@
           } else {
               response = (String)msg.getAsString();
           }
  -        res.setContentLength( response.length() );
  +        res.setContentLength( response.getBytes().length );
           res.getWriter().print( response );
       }
   }