correct handling of headers in rest_client.rb #44