fix for rest-client 1.8.7