This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-10
Channels
- # announcements (14)
- # bangalore-clj (1)
- # beginners (89)
- # calva (166)
- # cider (33)
- # clara (12)
- # clj-kondo (1)
- # cljdoc (8)
- # clojure (101)
- # clojure-austin (1)
- # clojure-colombia (7)
- # clojure-dev (14)
- # clojure-europe (5)
- # clojure-hamburg (10)
- # clojure-italy (9)
- # clojure-nl (31)
- # clojure-spec (4)
- # clojure-uk (39)
- # clojurescript (17)
- # clojutre (3)
- # code-reviews (16)
- # cursive (72)
- # data-science (1)
- # datomic (81)
- # duct (8)
- # emacs (4)
- # figwheel-main (1)
- # graalvm (2)
- # jobs (9)
- # kaocha (21)
- # lambdaisland (2)
- # luminus (4)
- # off-topic (35)
- # re-frame (1)
- # reagent (101)
- # reitit (4)
- # ring-swagger (5)
- # shadow-cljs (17)
- # sql (40)
- # tools-deps (4)
- # vim (28)
@holyjak I think you should set the content-type
header to application/json
too. Or you could just put :body-params
to {:first-name "Bo"}
to bypass the content-negotiation & body formatting step
Thanks a lot! I wouldn't have figured that out without your help. I would have expected a different behavior when the content-type is missing, getting a string or InputStream as the body, not a nil. So thank you for pointing me in the right direction!
oh, the nil
:body if content-negotiation doesn’t match might be a bug in Muuntaja. Please write an issue (&/ PR to fix it)
the is a request pipeline differ that is good for debugging what the mw chain actually does, see https://cljdoc.org/d/metosin/reitit/0.3.9/doc/ring/transforming-middleware-chain#printing-request-diffs