diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-16 20:36:51 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-19 20:12:30 +0200 |
commit | f2c275b1a76030d4c27ff124ce89e090f6aea584 (patch) | |
tree | 36c134a02df807dded9b45b6733f8a85829d2c8c /src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java | |
parent | efdbbf1c0703cb8f0a13b9f882eabe2c3d71b4ba (diff) |
log download failure caused by missing content length
Diffstat (limited to 'src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java index c46f2b977..6f141aa86 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java @@ -224,7 +224,7 @@ public class HttpDownloadConnection implements Transferable { String contentLength = connection.getHeaderField("Content-Length"); connection.disconnect(); if (contentLength == null) { - throw new IOException(); + throw new IOException("no content-length found in HEAD response"); } wakeLock.release(); return Long.parseLong(contentLength, 10); |