Skip to content

Commit

Permalink
Merge pull request #120 from pusher/accept-201-auth-endpoint-responses
Browse files Browse the repository at this point in the history
Accept 201 status code from auth endpoints
  • Loading branch information
jpatel531 authored Sep 28, 2016
2 parents d46b30b + 5c63008 commit 537bd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/pusher/client/util/HttpAuthorizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 537bd51

Please sign in to comment.