diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-16 20:36:51 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-16 20:36:51 +0200 |
commit | dcc13d7a3d991132b8cb3e88eb08db61c161c510 (patch) | |
tree | 8f7175c2921ba1c9caaae820200e2e6aefe1d068 | |
parent | 48a7818e883697913cc0a48960999d176ce8f5c0 (diff) |
log download failure caused by missing content length
-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 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) { |