mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
bugfix: accept status code 201 on http upload
This commit is contained in:
parent
731e1dcd43
commit
086653b649
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user