204 is ok

pull/1/head
Moxie Marlinspike 11 years ago
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…
Cancel
Save