tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util MimeHeaderField.java
Date Fri, 10 Nov 2000 02:59:39 GMT
craigmcc    00/11/09 18:59:39

  Modified:    src/share/org/apache/tomcat/util Tag: tomcat_32
                        MimeHeaderField.java
  Log:
  Correctly perform header name comparisons based on the data type of the
  *name*, not the *value*.  This bug caused duplicate headers in some cases,
  even if the calling servlet called a method like response.setDateHeader()
  with the same header name more than once (which should cause the previous
  value to be replaced).
  
  PR: BugRat Bug Report #185.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.2.1  +4 -4      jakarta-tomcat/src/share/org/apache/tomcat/util/Attic/MimeHeaderField.java
  
  Index: MimeHeaderField.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/Attic/MimeHeaderField.java,v
  retrieving revision 1.10
  retrieving revision 1.10.2.1
  diff -u -r1.10 -r1.10.2.1
  --- MimeHeaderField.java	2000/06/23 02:16:29	1.10
  +++ MimeHeaderField.java	2000/11/10 02:59:39	1.10.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/Attic/MimeHeaderField.java,v
1.10 2000/06/23 02:16:29 costin Exp $
  - * $Revision: 1.10 $
  - * $Date: 2000/06/23 02:16:29 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/Attic/MimeHeaderField.java,v
1.10.2.1 2000/11/10 02:59:39 craigmcc Exp $
  + * $Revision: 1.10.2.1 $
  + * $Date: 2000/11/10 02:59:39 $
    *
    * ====================================================================
    *
  @@ -364,7 +364,7 @@
        * @param s the string to compare
        */
       public boolean nameEquals(String s) {
  -	switch (type) {
  +	switch (nameType) {
   	case T_STR:
   	    return name.equalsIgnoreCase(s);
   	case T_CHARS:
  
  
  

Mime
View raw message