204 is ok

This commit is contained in:
Moxie Marlinspike 2013-10-31 12:30:22 -07:00
parent 44d59d0fd1
commit 6e640db39c

View File

@ -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());
} }