Resolve #3226511 "Restclient non json"
This new branch adds overridable default headers and should fix the broken test. We have not yet written any new tests for this feature. However, we have confirmed that it works with CSV files and the Batch 2.0 API. Not sure exactly how to back port it if this looks good to you. We are still on the 4.x release. Feedback welcome.