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
This commit is contained in:
Michael Bayne
2004-06-17 03:02:55 +00:00
parent fc8213493e
commit 5282160ab4
@@ -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 {