diff --git a/src/main/java/com/pusher/client/util/HttpAuthorizer.java b/src/main/java/com/pusher/client/util/HttpAuthorizer.java index b1af0ff2..bfee012c 100644 --- a/src/main/java/com/pusher/client/util/HttpAuthorizer.java +++ b/src/main/java/com/pusher/client/util/HttpAuthorizer.java @@ -138,7 +138,7 @@ public String authorize(final String channelName, final String socketId) throws rd.close(); final int responseHttpStatus = connection.getResponseCode(); - if (responseHttpStatus != 200) { + if (responseHttpStatus != 200 && responseHttpStatus != 201) { throw new AuthorizationFailureException(response.toString()); }