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 di...@apache.org on 2003/03/01 23:33:17 UTC

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

dims        2003/03/01 14:33:16

  Modified:    java/src/org/apache/axis/transport/http
                        CommonsHTTPSender.java
  Log:
  Fix for Bug 17539 - CommonsHTTPSender will corrupt message data
  
  Revision  Changes    Path
  1.10      +1 -1      xml-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java
  
  Index: CommonsHTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CommonsHTTPSender.java	11 Dec 2002 22:38:23 -0000	1.9
  +++ CommonsHTTPSender.java	1 Mar 2003 22:33:16 -0000	1.10
  @@ -125,7 +125,7 @@
               ByteArrayOutputStream baos = new ByteArrayOutputStream();
   
               reqMessage.writeTo(baos);
  -            method.setRequestBody(new String(baos.toByteArray()));
  +            method.setRequestBody(new String(baos.toByteArray(), "UTF-8"));
               method.execute(state, conn);
               int returnCode = method.getStatusCode();
               String contentType = null;