Open
Description
When you specify headers, it doesn't do a deep merge, and the specified headers are the ONLY ones passed along.
https://github.com/tailrecursion/ring-proxy/blob/master/src/tailrecursion/ring_proxy.clj#L45
For example, I'm using this to add a AUTH_TOKEN header with the proxy. The request comes in with Content-Type: application/json, but after this merge only the overrides exist.
One fix would be to do (merge-with merge req http-opts), which handles one level of nested (which will always be the case with http-opts).
Metadata
Metadata
Assignees
Labels
No labels