portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggol...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/urlmanager URLFetcher.java
Date Tue, 04 Jun 2002 20:10:49 GMT
ggolden     2002/06/04 13:10:49

  Modified:    src/java/org/apache/jetspeed/services/urlmanager
                        URLFetcher.java
  Log:
  refresh() : Modified the test of content length to deal with -1, the case where content
  length is not known.  Without this, if the content length was not known, the
  disk cache would never successfully cache the source.
  
  Revision  Changes    Path
  1.10      +2 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/services/urlmanager/URLFetcher.java
  
  Index: URLFetcher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/urlmanager/URLFetcher.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- URLFetcher.java	17 Jan 2002 19:21:38 -0000	1.9
  +++ URLFetcher.java	4 Jun 2002 20:10:49 -0000	1.10
  @@ -78,7 +78,7 @@
   
   @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
   @author <a href="mailto:sgala@hisitech.com">Santiago Gala</a>
  -@version $Id: URLFetcher.java,v 1.9 2002/01/17 19:21:38 sgala Exp $
  +@version $Id: URLFetcher.java,v 1.10 2002/06/04 20:10:49 ggolden Exp $
   */
   public class URLFetcher {
   
  @@ -302,7 +302,7 @@
                    }
                      
                    if (respCode != 304 /*NOT MODIFIED*/ && 
  -                     clength > 0 && 
  +                     (clength == -1 || clength > 0) && 
                        (  last == 0 || 
                          last > dce.getLastModified()) ) {
   
  
  
  

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


Mime
View raw message