aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-07-19 13:36:02 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-07-19 13:36:02 +0200
commit0166ced46cc6663a9fa86b60588d440ca8a7af7c (patch)
tree06c46a489f0b9e81e98ae97242979a004db0d084
parentf58b2afcaaf1977f02c590a8832bb67f77ee7be3 (diff)
bugfix: accept status code 201 on http upload
-rw-r--r--src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
index dd842754..a3ab8dab 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
@@ -157,7 +157,7 @@ public class HttpUploadConnection implements Transferable {
os.close();
is.close();
int code = connection.getResponseCode();
- if (code == 200) {
+ if (code == 200 || code == 201) {
Log.d(Config.LOGTAG, "finished uploading file");
Message.FileParams params = message.getFileParams();
if (key != null) {