Skip to content

Commit

Permalink
Only use compojure 'site' for dynamic route; it's got cookies and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
amalloy committed Sep 30, 2011
1 parent 6f20d46 commit bf7e1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/foreclojure/core.clj
Expand Up @@ -48,6 +48,7 @@
identity))
session/wrap-stateful-session
wrap-uri-binding
handler/site
wrap-strip-trailing-slash))

(let [canonical-host (or config/dynamic-host "www.4clojure.com")]
Expand All @@ -74,7 +75,6 @@

(def app (-> (split-hosts host-handlers)
wrap-404
handler/site
wrap-gzip))

(defn register-heartbeat []
Expand Down

0 comments on commit bf7e1f9

Please sign in to comment.