tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util MimeHeaders.java
Date Tue, 29 Aug 2000 00:58:27 GMT
nacho       00/08/28 17:58:27

  Modified:    src/share/org/apache/tomcat/util MimeHeaders.java
  Log:
  Fixed a typo, it's a really bad typo, brakes everything.
  
  Revision  Changes    Path
  1.12      +7 -7      jakarta-tomcat/src/share/org/apache/tomcat/util/MimeHeaders.java
  
  Index: MimeHeaders.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/MimeHeaders.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- MimeHeaders.java	2000/08/28 06:08:19	1.11
  +++ MimeHeaders.java	2000/08/29 00:58:26	1.12
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/MimeHeaders.java,v
1.11 2000/08/28 06:08:19 costin Exp $
  - * $Revision: 1.11 $
  - * $Date: 2000/08/28 06:08:19 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/MimeHeaders.java,v
1.12 2000/08/29 00:58:26 nacho Exp $
  + * $Revision: 1.12 $
  + * $Date: 2000/08/29 00:58:26 $
    *
    * ====================================================================
    *
  @@ -225,7 +225,7 @@
   	mhf.getName().setBytes(b, startN, endN);
   	mhf.getValue().setBytes(b, startV, endV);
       }
  -    
  +
       /**
        * Creates a new header field whose value is the specified string.
        * @param name the header name
  @@ -233,7 +233,7 @@
        */
       public void setHeader(String name, String s) {
   	MimeHeaderField headerF= find( name );
  -	if( headerF != null )
  +	if( headerF == null )
   	    headerF=addHeader( name );
   	headerF.getValue().setString(s);
       }
  @@ -249,7 +249,7 @@
        */
       public void setIntHeader(String name, int i) {
   	MimeHeaderField headerF= find( name );
  -	if( headerF != null )
  +	if( headerF == null )
   	    headerF=addHeader( name );
   	headerF.getValue().setInt(i);
       }
  @@ -266,7 +266,7 @@
        */
       public void setDateHeader(String name, long t) {
   	MimeHeaderField headerF= find( name );
  -	if( headerF != null )
  +	if( headerF == null )
   	    headerF=addHeader( name );
   	headerF.getValue().setTime(t);
       }
  
  
  

Mime
View raw message