mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Merge remote-tracking branch 'origin/fix_resource_handling' into develope
This commit is contained in:
commit
4b4e5dce46
2 changed files with 2 additions and 1 deletions
|
|
@ -97,6 +97,7 @@
|
|||
[xss-protection?]
|
||||
(-> site-defaults
|
||||
(update-in [:session] merge session-defaults)
|
||||
(dissoc :static)
|
||||
(assoc-in [:security :anti-forgery] xss-protection?)))
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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 %)])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue