Fork me on GitHub
#reitit
<
2022-11-20
>
Ben Sless16:11:40

Does muuntaja have a setting for default content type?

Ben Sless11:11:41

Doesn't seem to be respected by reitit 😞

delaguardo11:11:14

yeah, reitit doesn't. you can add content-type middleware from ring before muuntaja as a temporary solution but it would be cool if muuntaja can handle it itself.

delaguardo12:11:51

however this looks like a bug muuntaja adds both request and response format in the middleware but sets request format to nil in case of missing content-type

David G02:03:53

@UK0810AQ2 did you write anything for this?

David G03:03:08

https://github.com/metosin/muuntaja/issues/133 I wonder if there's something else for content negotiation