From 6e640db39c25a293ca3d74180ffad6a0e4a76908 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 31 Oct 2013 12:30:22 -0700 Subject: [PATCH] 204 is ok --- .../org/whispersystems/textsecure/push/PushServiceSocket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java b/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java index d90bd92383..8a5b692f0a 100644 --- a/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java +++ b/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java @@ -319,7 +319,7 @@ public class PushServiceSocket { 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()); }