From: Niki Roo Date: Thu, 30 May 2019 18:47:38 +0000 (+0200) Subject: Version 5.0.0 X-Git-Tag: fanfix-swing-0.0.1~21^2~27 X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=eee36623c03dd8bcd40fdbb4ad3ba75bc6f5ce42;p=fanfix-swing.git Version 5.0.0 --- diff --git a/changelog.md b/changelog.md index d8e807f6..0445b5a9 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ - fix: IOUtils.readSmallStream and \n at the end - fix: Base64 implementation changed, no strange errors anymore - fix: Downloader had some problems with POST redirection +- android: binary code (.class) is now bundled in the jar, too - change: StringUtils.unzip64(String) now returns a byte[] (StringUtils.unzip64s(String) can be used instead) - change: be.nikiroo.utils.markableFileInputStream moved to be.nikiroo.utils.streams (old class still present in @Deprecated state for now) - change: TestLauncher is now "silent" by default (no exception details, see setDetails(true)) diff --git a/src/be/nikiroo/utils/Downloader.java b/src/be/nikiroo/utils/Downloader.java index 7ee551ff..2a462a81 100644 --- a/src/be/nikiroo/utils/Downloader.java +++ b/src/be/nikiroo/utils/Downloader.java @@ -345,8 +345,8 @@ public class Downloader { } if (cache != null) { - String size = conn.getContentLengthLong() < 0 ? "unknown size" - : StringUtils.formatNumber(conn.getContentLengthLong()) + String size = conn.getContentLength() < 0 ? "unknown size" + : StringUtils.formatNumber(conn.getContentLength()) + "bytes"; tracer.trace("Save to cache (" + size + "): " + originalUrl); try {