tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/generators StaticInterceptor.java
Date Mon, 18 Feb 2002 04:05:28 GMT
billbarker    02/02/17 20:05:28

  Modified:    src/share/org/apache/tomcat/modules/generators
                        StaticInterceptor.java
  Log:
  Second half of the fix for 6515.
  
  It seems that StaticInterceptor replicates code from the Facade.
  
  Revision  Changes    Path
  1.19      +5 -2      jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/StaticInterceptor.java
  
  Index: StaticInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/StaticInterceptor.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- StaticInterceptor.java	9 Jan 2002 07:43:20 -0000	1.18
  +++ StaticInterceptor.java	18 Feb 2002 04:05:28 -0000	1.19
  @@ -376,9 +376,12 @@
   	}
       }
   
  +    // This should be deprecated as dangerous.
       static void setDateHeader( Response res, String name, long value ) {
  -	MimeHeaders headers=res.getMimeHeaders();
  -	headers.setValue( name ).setTime( value );
  +	if( ! res.isIncluded() ) {
  +	    MimeHeaders headers=res.getMimeHeaders();
  +	    headers.setValue( name ).setTime( value );
  +	}
       }
   
       /** All path checks that were part of DefaultServlet
  
  
  

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


Mime
View raw message