diff --git a/lib/src/main/java/io/ably/lib/rest/Auth.java b/lib/src/main/java/io/ably/lib/rest/Auth.java index 562e45292..799f082d9 100644 --- a/lib/src/main/java/io/ably/lib/rest/Auth.java +++ b/lib/src/main/java/io/ably/lib/rest/Auth.java @@ -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() { + return ably.http.post(tokenPath, null, null, new Http.JsonRequestBody(signedTokenRequest.asJsonElement().toString()), new ResponseHandler() { @Override public TokenDetails handleResponse(Response response, ErrorInfo error) throws AblyException { if(error != null) {