content lengths specified.
This commit is contained in:
@@ -181,17 +181,19 @@
|
||||
(defn make-pdfs [checks]
|
||||
(loop [[check & checks] checks]
|
||||
(when check
|
||||
(s3/put-object :bucket-name (:data-bucket env)
|
||||
:key (:payment/s3-key check)
|
||||
:input-stream (-> check
|
||||
:payment/pdf-data
|
||||
(edn/read-string)
|
||||
(let [check-bytes (-> check
|
||||
:payment/pdf-data
|
||||
(edn/read-string)
|
||||
|
||||
|
||||
|
||||
make-check-pdf
|
||||
(io/make-input-stream {}))
|
||||
:metadata {:content-type "application/pdf"})
|
||||
make-check-pdf
|
||||
)]
|
||||
(s3/put-object :bucket-name (:data-bucket env)
|
||||
:key (:payment/s3-key check)
|
||||
:input-stream (io/make-input-stream check-bytes {})
|
||||
:metadata {:content-type "application/pdf"
|
||||
:content-length (count check-bytes)}))
|
||||
(recur checks))))
|
||||
|
||||
(defn merge-pdfs [keys]
|
||||
|
||||
Reference in New Issue
Block a user