luminus

File is downloaded instead of being displayed in the browser

你。 提交于 2019-12-20 05:19:16
问题 I have created a brand new app from the luminus app template using lein new luminus my-app +postgres +auth +cljs +swagger . In the generated file src/clj/my_app/routes/home.clj the following compojure route is created: (GET "/docs" [] (response/ok (-> "docs/docs.md" io/resource slurp))) When I try to access localhost:3000/docs the file is simply downloaded instead of displayed in the browser. It happens both with Chrome and Safari. It seems related to ring.util.http-response/ok since I can