I recently ran into an issue where my connector had a default Content-Type of application/json and the request had a different Content-Type added by the body trait (HasFormBody) but because of the new PendingRequest order, the connector headers were overwriting the trait's headers.
I think in future versions of Saloon it should work like so:
I recently ran into an issue where my connector had a default Content-Type of
application/json
and the request had a different Content-Type added by the body trait (HasFormBody
) but because of the new PendingRequest order, the connector headers were overwriting the trait's headers.I think in future versions of Saloon it should work like so: