Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using muuntaja middleware after ring wrap-content-type doesn't work #96

Open
TimoFreiberg opened this issue Mar 6, 2019 · 0 comments
Open

Comments

@TimoFreiberg
Copy link

TimoFreiberg commented Mar 6, 2019

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 ring-clojure/ring-defaults#26 for the other side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant