Update RestClient.as

a bit of cleanup