mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 22:47:13 +02:00
🐛 Fix unathorized redirect
This commit is contained in:
parent
426758d9b2
commit
ba139d7d2c
2 changed files with 9 additions and 3 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