From 36def397a805d2657542c0346d4f98d8f89cfdf2 Mon Sep 17 00:00:00 2001 From: Paddy Byers Date: Tue, 8 Aug 2017 18:05:49 +0100 Subject: [PATCH] Don't send authHeaders or authParams in calls to requestToken --- lib/src/main/java/io/ably/lib/rest/Auth.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {