Skip to content

Commit

Permalink
Don't send authHeaders or authParams in calls to requestToken
Browse files Browse the repository at this point in the history
  • Loading branch information
paddybyers committed Aug 9, 2017
1 parent c2f1ebb commit 36def39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/java/io/ably/lib/rest/Auth.java
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ public Object handleResponse(Response response, ErrorInfo error) throws AblyExce
}

String tokenPath = "/keys/" + signedTokenRequest.keyName + "/requestToken";
return ably.http.post(tokenPath, tokenOptions.authHeaders, tokenOptions.authParams, new Http.JsonRequestBody(signedTokenRequest.asJsonElement().toString()), new ResponseHandler<TokenDetails>() {
return ably.http.post(tokenPath, null, null, new Http.JsonRequestBody(signedTokenRequest.asJsonElement().toString()), new ResponseHandler<TokenDetails>() {
@Override
public TokenDetails handleResponse(Response response, ErrorInfo error) throws AblyException {
if(error != null) {
Expand Down

0 comments on commit 36def39

Please sign in to comment.