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 ha...@apache.org on 2002/09/12 06:03:45 UTC

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

haddadc     2002/09/11 21:03:45

  Modified:    java/src/org/apache/axis/transport/http HTTPSender.java
  Log:
  modified HTTP-UserAgent to Axis/RC1
  
  fixes bug #12530 reported by thomas@boerkel.de (Thomas Boerkel)
  
  Revision  Changes    Path
  1.84      +5 -5      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.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- HTTPSender.java	9 Sep 2002 17:03:21 -0000	1.83
  +++ HTTPSender.java	12 Sep 2002 04:03:45 -0000	1.84
  @@ -330,7 +330,7 @@
                           String val = me.getValue().toString();
                           if (null != val && val.trim().equalsIgnoreCase(HTTPConstants.HEADER_EXPECT_100_Continue))
                               httpContinueExpected = true;
  -                    }        
  +                    }
   
                       otherHeaders.append(key).append(": ").append(me.getValue()).append("\r\n");
                   }
  @@ -360,7 +360,7 @@
                   .append("\r\n")
                   .append(HTTPConstants.HEADER_USER_AGENT)   //Tell who we are.
                   .append( ": ")
  -                .append("Axis/beta3")
  +                .append("Axis/RC1")
                   .append("\r\n")
                   .append(HTTPConstants.HEADER_HOST)  //used for virtual connections
                   .append(": ")
  @@ -415,7 +415,7 @@
               if(httpContinueExpected ){ //We need to get a reply from the server as to whether
                                         // it wants us send anything more.
                   out.flush();
  -                Hashtable cheaders= new Hashtable (); 
  +                Hashtable cheaders= new Hashtable ();
                   inp=readFromSocket(sock, msgContext, null, cheaders);
                   int returnCode= -1;
                   Integer Irc= (Integer)msgContext.getProperty(HTTPConstants.MC_HTTP_STATUS_CODE);
  @@ -426,7 +426,7 @@
                       msgContext.removeProperty(HTTPConstants.MC_HTTP_STATUS_MESSAGE);
                   }
                   else{ //If no 100 Continue then we must not send anything!
  -                    String statusMessage= (String) 
  +                    String statusMessage= (String)
                           msgContext.getProperty(HTTPConstants.MC_HTTP_STATUS_MESSAGE);
   
                       AxisFault fault = new AxisFault("HTTP", "(" + returnCode+ ")" + statusMessage, null, null);
  @@ -452,7 +452,7 @@
               if(httpContinueExpected ){ //We need to get a reply from the server as to whether
                                         // it wants us send anything more.
                   out.flush();
  -                Hashtable cheaders= new Hashtable (); 
  +                Hashtable cheaders= new Hashtable ();
                   inp=readFromSocket(sock, msgContext, null, cheaders);
                   int returnCode= -1;
                   Integer Irc=  (Integer) msgContext.getProperty(HTTPConstants.MC_HTTP_STATUS_CODE);