You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2002/02/18 05:05:28 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/generators StaticInterceptor.java

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>