Disable response streaming.

Because it is really slow.
This commit is contained in:
Andrey Antukh 2021-09-02 14:17:12 +02:00
parent 8af46ac7fc
commit 8464e6a822
2 changed files with 3 additions and 10 deletions

View file

@ -95,15 +95,7 @@
(coll? body)
(-> response
(update :headers assoc "content-type" "application/transit+json")
(assoc :body (transit-streamable-body 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))))
(assoc :body (t/encode body opts)))
(nil? body)
(assoc response :status 204 :body "")