aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-07-19 13:36:02 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-07-21 11:55:18 +0200
commit086653b649348b191a4adaa5e2f5e639cf584026 (patch)
treeeab4befb7a1a94225de2cfcadef8a7275a14bd83 /src/main
parent731e1dcd438ee7b1cc8555c2c9546035a7e45dc5 (diff)
bugfix: accept status code 201 on http upload
Diffstat (limited to 'src/main')
-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) {