muuntaja icon indicating copy to clipboard operation
muuntaja copied to clipboard

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

Open TimoFreiberg opened this issue 5 years ago • 0 comments

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.

TimoFreiberg avatar Mar 06 '19 20:03 TimoFreiberg