From 5282160ab49695197f891e70e4ff01d2f06ce10a Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 17 Jun 2004 03:02:55 +0000 Subject: [PATCH] Need to set the content length in here as well. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3031 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/resource/HTTPDownloader.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/resource/HTTPDownloader.java b/src/java/com/threerings/resource/HTTPDownloader.java index bea815dd3..9f5a00b5d 100644 --- a/src/java/com/threerings/resource/HTTPDownloader.java +++ b/src/java/com/threerings/resource/HTTPDownloader.java @@ -1,5 +1,5 @@ // -// $Id: HTTPDownloader.java,v 1.3 2004/02/25 14:52:16 mdb Exp $ +// $Id: HTTPDownloader.java,v 1.4 2004/06/17 03:02:55 mdb Exp $ package com.threerings.resource; @@ -32,12 +32,12 @@ public class HTTPDownloader extends Downloader } // read size and last modified information from the HEAD response - long fileSize = ucon.getContentLength(); + _contentLength = ucon.getContentLength(); _desc.lastModified = ucon.getLastModified(); - if (compareWithLocal(fileSize, _desc.lastModified)) { + if (compareWithLocal(_contentLength, _desc.lastModified)) { // increment the total file size to be fetched - info.totalSize += fileSize; + info.totalSize += _contentLength; Log.debug("Resource deemed stale [url=" + _desc.sourceURL + "]."); return true; } else {