force-rest-api
force-rest-api copied to clipboard
Remove authorisation token from toString representation
HttpRequest's toString representation should not contain the authorisation token, because then it will be leaked when the request is logged.
This is currently the case - HttpResponse.send method logs the HttpRequest whenever it receives a bad response code from SalesForce, leaking the authorisation code in the log.