axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/transport/http CommonsHTTPSender.java HTTPSender.java
Date Tue, 14 Jun 2005 10:40:04 GMT
dims        2005/06/14 03:40:04

  Modified:    java/src/org/apache/axis/transport/http
                        CommonsHTTPSender.java HTTPSender.java
  Log:
  tiny fix from Gerry.
  
  Revision  Changes    Path
  1.36      +6 -1      ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java
  
  Index: CommonsHTTPSender.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- CommonsHTTPSender.java	14 Jun 2005 01:45:34 -0000	1.35
  +++ CommonsHTTPSender.java	14 Jun 2005 10:40:04 -0000	1.36
  @@ -314,7 +314,12 @@
                       cookies.add(anOldCookie);
                   }
               } else {
  -                cookies.add((String)oldCookies);
  +				String oldCookie = (String)oldCookies;
  +                if (oldCookie.indexOf(key) == 0) { // same cookie key
  +					oldCookie = cookie;             // update to new one
  +                    alreadyExist = true;
  +                }
  +                cookies.add(oldCookie);
               }
           }
           
  
  
  
  1.132     +6 -1      ws-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
  
  Index: HTTPSender.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
  retrieving revision 1.131
  retrieving revision 1.132
  diff -u -r1.131 -r1.132
  --- HTTPSender.java	14 Jun 2005 01:45:34 -0000	1.131
  +++ HTTPSender.java	14 Jun 2005 10:40:04 -0000	1.132
  @@ -831,7 +831,12 @@
                       cookies.add(anOldCookie);
                   }
               } else {
  -                cookies.add((String)oldCookies);
  +				String oldCookie = (String)oldCookies;
  +                if (oldCookie.indexOf(key) == 0) { // same cookie key
  +					oldCookie = cookie;             // update to new one
  +                    alreadyExist = true;
  +                }
  +                cookies.add(oldCookie);
               }
           }
           
  
  
  

Mime
View raw message