aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-16 20:36:51 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-16 20:36:51 +0200
commitdcc13d7a3d991132b8cb3e88eb08db61c161c510 (patch)
tree8f7175c2921ba1c9caaae820200e2e6aefe1d068 /src/main/java/eu/siacs
parent48a7818e883697913cc0a48960999d176ce8f5c0 (diff)
log download failure caused by missing content length
Diffstat (limited to 'src/main/java/eu/siacs')
-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 b8dbdb57..f00a6cc5 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
@@ -216,7 +216,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");
}
return Long.parseLong(contentLength, 10);
} catch (IOException e) {