bugfix: accept status code 201 on http upload
This commit is contained in:
parent
f58b2afcaa
commit
0166ced46c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue