This PR adds an optional parameter to the Cb::Clients::Base.headers method to allow overriding of the Accept header.
It still defaults to the old value (application/json), but now if you pass in the kwarg :accept_header the headers that are returned will contain the value of the kwarg for the Accept header. The base client didn't have any tests so I did a quick, cheesy test for the cb_client method and then some more in depth tests that assert how the headers method works.
This PR adds an optional parameter to the
Cb::Clients::Base.headers
method to allow overriding of the Accept header.It still defaults to the old value (application/json), but now if you pass in the kwarg
:accept_header
the headers that are returned will contain the value of the kwarg for the Accept header. The base client didn't have any tests so I did a quick, cheesy test for thecb_client
method and then some more in depth tests that assert how theheaders
method works.