Fork me on GitHub
#clojure-uk
<
2021-03-22
>
dharrigan04:03:24

Morning.

3
👋 3
danm09:03:18

Morning!

danm09:03:46

I can open my eye again! (managed to scratch my cornea on a tiny twig in the dark on Saturday...)

dharrigan09:03:27

Hope you recover soon!

jiriknesl09:03:12

Good morning

danm12:03:15

Argh, why does clj-http not auto-encode the input body from a Clojure map to JSON when you use :as :json/`:content-type :json`? 😞

dharrigan13:03:08

Hmm, encodes for me

dharrigan13:03:54

the form-params gets sent out as json

dharrigan13:03:46

I was talking bollocks

dharrigan13:03:54

sorry about that

dharrigan13:03:55

Yeah, in other code, I had to do this:

dharrigan13:03:05

POST -> :body (json/generate-string {:username username :password password})})