mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 16:07:24 +02:00
Merge remote-tracking branch 'origin/main' into develop
This commit is contained in:
commit
28e2d64ac6
3 changed files with 10 additions and 4 deletions
|
@ -143,6 +143,12 @@
|
|||
(assoc response :body (t/decode-str body))
|
||||
response)))
|
||||
|
||||
(defn conditional-error-decode-transit
|
||||
[{:keys [body status] :as response}]
|
||||
(if (and (>= status 400) (string? body))
|
||||
(assoc response :body (t/decode-str body))
|
||||
response))
|
||||
|
||||
(defn success?
|
||||
[{:keys [status]}]
|
||||
(<= 200 status 299))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue