mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 01:16:13 +02:00
✨ Disable response streaming.
Because it is really slow.
This commit is contained in:
parent
8af46ac7fc
commit
8464e6a822
2 changed files with 3 additions and 10 deletions
|
@ -141,7 +141,8 @@
|
||||||
["/webhooks"
|
["/webhooks"
|
||||||
["/sns" {:post (:sns-webhook cfg)}]]
|
["/sns" {:post (:sns-webhook cfg)}]]
|
||||||
|
|
||||||
["/api" {:middleware [[middleware/format-response-body]
|
["/api" {:middleware [[middleware/etag]
|
||||||
|
[middleware/format-response-body]
|
||||||
[middleware/params]
|
[middleware/params]
|
||||||
[middleware/multipart-params]
|
[middleware/multipart-params]
|
||||||
[middleware/keyword-params]
|
[middleware/keyword-params]
|
||||||
|
|
|
@ -95,15 +95,7 @@
|
||||||
(coll? body)
|
(coll? body)
|
||||||
(-> response
|
(-> response
|
||||||
(update :headers assoc "content-type" "application/transit+json")
|
(update :headers assoc "content-type" "application/transit+json")
|
||||||
(assoc :body (transit-streamable-body body opts)))
|
(assoc :body (t/encode body opts)))
|
||||||
|
|
||||||
;; ;; Temporary disabled
|
|
||||||
;; (-> response
|
|
||||||
;; (update :headers assoc "content-type" "application/transit+json")
|
|
||||||
;; (assoc :body
|
|
||||||
;; (if (= :post (:request-method request))
|
|
||||||
;; (transit-streamable-body body opts)
|
|
||||||
;; (t/encode body opts))))
|
|
||||||
|
|
||||||
(nil? body)
|
(nil? body)
|
||||||
(assoc response :status 204 :body "")
|
(assoc response :status 204 :body "")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue