You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
I wonder if we can solve this problem decisively by somehow providing a hook into the merging process itself, like perhaps by accepting a function that will perform the merging? I'm imagining changing the signature of wrap-proxy like this:
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).
The text was updated successfully, but these errors were encountered: