Don't send token if null
This commit is contained in:
@ -90,7 +90,8 @@ public class JSONRPC2Interface {
|
|||||||
throw new UnrecoverableFailedRequestException(); // Max retries reached. Throw exception.
|
throw new UnrecoverableFailedRequestException(); // Max retries reached. Throw exception.
|
||||||
}
|
}
|
||||||
HashMap outParams = (HashMap) req.getParams();
|
HashMap outParams = (HashMap) req.getParams();
|
||||||
outParams.put("Token", token); // Add authentication token
|
if (token != null)
|
||||||
|
outParams.put("Token", token); // Add authentication token
|
||||||
req.setParams(outParams);
|
req.setParams(outParams);
|
||||||
|
|
||||||
JSONRPC2Response resp = null;
|
JSONRPC2Response resp = null;
|
||||||
|
Reference in New Issue
Block a user