bugfix: accept status code 201 on http upload

This commit is contained in:
Daniel Gultsch 2015-07-19 13:36:02 +02:00
parent f58b2afcaa
commit 0166ced46c

View file

@ -157,7 +157,7 @@ public class HttpUploadConnection implements Transferable {
os.close(); os.close();
is.close(); is.close();
int code = connection.getResponseCode(); int code = connection.getResponseCode();
if (code == 200) { if (code == 200 || code == 201) {
Log.d(Config.LOGTAG, "finished uploading file"); Log.d(Config.LOGTAG, "finished uploading file");
Message.FileParams params = message.getFileParams(); Message.FileParams params = message.getFileParams();
if (key != null) { if (key != null) {