⬆️ Update yetti to v9.3 (bugfixing)

This commit is contained in:
Andrey Antukh 2022-07-13 13:22:54 +02:00
parent e7ae8f5c58
commit 99dea51eea
2 changed files with 3 additions and 3 deletions

View file

@ -37,14 +37,14 @@
(let [header (yrq/get-header request "content-type")]
(cond
(str/starts-with? header "application/transit+json")
(with-open [is (-> request yrq/body yrq/body-stream)]
(with-open [is (yrq/body request)]
(let [params (t/read! (t/reader is))]
(-> request
(assoc :body-params params)
(update :params merge params))))
(str/starts-with? header "application/json")
(with-open [is (-> request yrq/body yrq/body-stream)]
(with-open [is (yrq/body request)]
(let [params (json/read is)]
(-> request
(assoc :body-params params)