if ( ifModifiedSince >= ( lastModified / 1000 * 1000 ) )
{
response.setStatus( HttpServletResponse.SC_NOT_MODIFIED );
return true;
}
<BUG>response.setDateHeader( "Last-Modified", lastModified );
</BUG>
}
response.setContentType( getServletContext().getMimeType( pi ) );
<BUG>response.setIntHeader( "Content-Length", connection.getContentLength() );
</BUG>
OutputStream out = response.getOutputStream();

if ( ifModifiedSince >= ( lastModified / 1000 * 1000 ) )
{
response.setStatus( HttpServletResponse.SC_NOT_MODIFIED );
return true;
}
response.setDateHeader( "Last-Modified", lastModified ); //$NON-NLS-1$
}
response.setContentType( getServletContext().getMimeType( pi ) );
response.setIntHeader( "Content-Length", connection.getContentLength() ); //$NON-NLS-1$
OutputStream out = response.getOutputStream();
