juergen     2002/11/12 04:35:48

  Modified:    src/webdav/client/src/org/apache/commons/httpclient
                        Cookie.java
  Log:
  the domain is stored in lower case, compare it with lower case too.
  
  Revision  Changes    Path
  1.4       +5 -5      
jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/Cookie.java
  
  Index: Cookie.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/Cookie.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Cookie.java       25 Apr 2002 21:12:31 -0000      1.3
  +++ Cookie.java       12 Nov 2002 12:35:48 -0000      1.4
  @@ -76,7 +76,7 @@
    * This class represents an http cookie as specified in RFC 2109.
    *
    *
  - * @author   B.C. Holmes
  + * @author  B.C. Holmes
    * @author <a href="mailto:jericho@;thinkfree.com">Park, Sung-Gu</a>
    * @author <a href="mailto:dsale@;us.britannica.com">Doug Sale</a>
    */
  @@ -485,7 +485,7 @@
                   // A Set-Cookie2 with Domain=ajax.com will be accepted.
   
                   // domain must domain match host
  -                if (!domain.endsWith(cookie.getDomain())){
  +                if (!domain.toLowerCase().endsWith(cookie.getDomain())){
                       throw new HttpException(
                           "Bad Set-Cookie header: " + setCookie.getValue() +
                           "\nIllegal domain attribute" + cookie.getDomain());
  
  
  

--
To unsubscribe, e-mail:   <mailto:slide-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-dev-help@;jakarta.apache.org>

Reply via email to