aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-16 20:36:51 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-19 20:12:30 +0200
commitf2c275b1a76030d4c27ff124ce89e090f6aea584 (patch)
tree36c134a02df807dded9b45b6733f8a85829d2c8c /src/main/java/eu/siacs/conversations
parentefdbbf1c0703cb8f0a13b9f882eabe2c3d71b4ba (diff)
log download failure caused by missing content length
Diffstat (limited to 'src/main/java/eu/siacs/conversations')
-rw-r--r--src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java2
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);