hoplon / castra

HTTP remote procedure call handler for Clojure.
170 stars 25 forks source link

Custom `mkremote` headers are overridden #20

Closed ghost closed 5 years ago

ghost commented 8 years ago

As can be seen here (https://github.com/hoplon/castra/blob/master/src/castra/core.cljs#L91):

(merge opts {:headers headers :body body})

should probably be something like this:

(merge-with
    (fn [former latter]
        (if (every? map? [former latter])
            (merge former latter)
            latter))
    opts {:headers headers :body body})
ghost commented 5 years ago

Project no longer maintained, closing.

alandipert commented 5 years ago

This project is maintained. A PR for this issue would be considered.