I wish to serve a PDF (or any other binary file) in a Clojure Ring response. This works
(defn serve-file [request]
{:status 200
:headers {"Content-Type" "application/pdf"}
:body (FileInputStream. "file.pdf")})
But I'm not explicitly closing the FileInputStream. Will this cause a memory leak, or is it closed by the underlying web server (Jetty). If not, how do I close it myself?