mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
204 is ok
This commit is contained in:
parent
44d59d0fd1
commit
6e640db39c
@ -319,7 +319,7 @@ public class PushServiceSocket {
|
|||||||
throw new NotFoundException("Not found");
|
throw new NotFoundException("Not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (connection.getResponseCode() != 200) {
|
if (connection.getResponseCode() != 200 && connection.getResponseCode() != 204) {
|
||||||
throw new IOException("Bad response: " + connection.getResponseCode() + " " + connection.getResponseMessage());
|
throw new IOException("Bad response: " + connection.getResponseCode() + " " + connection.getResponseMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user