This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-24
Channels
- # announcements (3)
- # babashka (47)
- # beginners (40)
- # biff (21)
- # calva (12)
- # cider (2)
- # clj-kondo (31)
- # cljsrn (8)
- # clojure (14)
- # clojure-berlin (2)
- # clojure-conj (1)
- # clojure-dev (24)
- # clojure-europe (84)
- # clojure-italy (8)
- # clojure-nl (1)
- # clojure-spec (1)
- # clojure-sweden (2)
- # clojure-uk (2)
- # clojurescript (34)
- # clr (3)
- # community-development (1)
- # cursive (14)
- # datalevin (8)
- # datomic (5)
- # defnpodcast (2)
- # dev-tooling (1)
- # etaoin (4)
- # events (3)
- # fulcro (26)
- # graphql (3)
- # honeysql (6)
- # hyperfiddle (45)
- # lsp (40)
- # malli (1)
- # missionary (1)
- # nbb (18)
- # podcasts-discuss (1)
- # reagent (8)
- # reitit (2)
- # releases (2)
- # ring-swagger (1)
- # scittle (78)
- # shadow-cljs (96)
- # vim (7)
- # xtdb (3)
Hi guys, I'm confused a bit. I replaced compojure.core with compojure-api and got next behaviour for POST requests compojure-api -
BODY #object[org.eclipse.jetty.server.HttpInputOverHTTP 0x61ce0f6d HttpInputOverHTTP@61ce0f6d[c=593,q=0,[0]=null,s=STREAM]]
compojure.core
BODY {:id <ID> :name NAME}
I don't understand why the compojure-api gets the POST query with JSON as FILE Upload
the curl I'm using for requests
curl -i -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "x-api-key: APIKEY " --data {JSON DATA} localhost:3000/endpoint
Any thoughts?