Merge remote-tracking branch 'origin/fix_resource_handling' into develope

This commit is contained in:
jem 2019-01-18 10:30:38 +01:00
commit 4b4e5dce46
2 changed files with 2 additions and 1 deletions

View file

@ -97,6 +97,7 @@
[xss-protection?]
(-> site-defaults
(update-in [:session] merge session-defaults)
(dissoc :static)
(assoc-in [:security :anti-forgery] xss-protection?)))

View file

@ -50,9 +50,9 @@
(def production-middleware
[#(wrap-internal-error % :log (fn [e] (timbre/error e)))
#(wrap-resource % "public")
#(wrap-file % util/content-dir
{:index-files? false :prefer-handler? true})
#(wrap-resource % "public")
#(wrap-content-type %)
#(wrap-not-modified %)])