muuntaja
muuntaja copied to clipboard
Using muuntaja middleware after ring wrap-content-type doesn't work
ring-defaults' wrap-defaults
adds the ring.middleware.content-type/wrap-content-type
middleware by default (see https://github.com/ring-clojure/ring-defaults/blob/master/src/ring/middleware/defaults.clj#L27 and further occurences of :content-types
)
Muuntaja's muuntaja.middleware/wrap-format
will silently not do anything when ring's content-type middleware is also present.
Is it possible to make this work by default? Otherwise this dependency should be mentioned in the documentation. See https://github.com/ring-clojure/ring-defaults/issues/26 for the other side.