commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HeaderElement.java
Date Mon, 14 Apr 2003 04:06:57 GMT
mbecke      2003/04/13 21:06:56

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HeaderElement.java
  Log:
  Fixes a problem when parsing headers for cookies that expire on "Mon".
  
  PR: 18983
  Submitted by: Noboru Sinohara
  
  Revision  Changes    Path
  1.18      +5 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HeaderElement.java
  
  Index: HeaderElement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HeaderElement.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- HeaderElement.java	8 Mar 2003 21:30:02 -0000	1.17
  +++ HeaderElement.java	14 Apr 2003 04:06:55 -0000	1.18
  @@ -303,7 +303,7 @@
                    */
                   if (tokenizer.hasMoreTokens()) {
                       String s = nextToken.toLowerCase();
  -                    if (nextToken.endsWith("mon") 
  +                    if (s.endsWith("mon") 
                           || s.endsWith("tue")
                           || s.endsWith("wed") 
                           || s.endsWith("thu")
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message