This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-20
Channels
- # adventofcode (1)
- # announcements (2)
- # babashka (81)
- # beginners (33)
- # calva (11)
- # circleci (4)
- # clj-commons (3)
- # cljdoc (7)
- # clojars (5)
- # clojure (21)
- # clojure-europe (5)
- # clojure-japan (1)
- # clojure-norway (27)
- # clojurescript (24)
- # emacs (11)
- # events (5)
- # fulcro (14)
- # lsp (40)
- # malli (9)
- # nbb (1)
- # off-topic (5)
- # portal (4)
- # reitit (8)
- # scittle (9)
- # shadow-cljs (14)
- # spacemacs (3)
- # tools-deps (3)
https://github.com/metosin/muuntaja/blob/master/modules/muuntaja/src/muuntaja/core.clj#L116 :default-format
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.
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
https://github.com/metosin/muuntaja/blob/master/modules/muuntaja/src/muuntaja/core.clj#L461 probably here - -negotiate-content-type possibly can return nil
@UK0810AQ2 did you write anything for this?
https://github.com/metosin/muuntaja/issues/133 I wonder if there's something else for content negotiation