0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

⬆️ 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

@ -20,7 +20,7 @@
io.lettuce/lettuce-core {:mvn/version "6.1.8.RELEASE"} io.lettuce/lettuce-core {:mvn/version "6.1.8.RELEASE"}
java-http-clj/java-http-clj {:mvn/version "0.4.3"} java-http-clj/java-http-clj {:mvn/version "0.4.3"}
funcool/yetti {:git/tag "v9.2" :git/sha "4ddcc03" funcool/yetti {:git/tag "v9.3" :git/sha "c6e2d0d"
:git/url "https://github.com/funcool/yetti.git" :git/url "https://github.com/funcool/yetti.git"
:exclusions [org.slf4j/slf4j-api]} :exclusions [org.slf4j/slf4j-api]}

View file

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