You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by gg...@apache.org on 2002/06/04 22:10:49 UTC
cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/urlmanager URLFetcher.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>