bugfix: accept status code 201 on http upload

This commit is contained in:
Daniel Gultsch 2015-07-19 13:36:02 +02:00
parent 731e1dcd43
commit 086653b649
1 changed files with 1 additions and 1 deletions

View File

@ -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) {