Skip to content

Issue when passing headers with http-opts #7

Description

@deanmarano

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions