Skip to content

Commit

Permalink
Add a gzip middleware to improve transfer speed some more
Browse files Browse the repository at this point in the history
  • Loading branch information
amalloy committed May 31, 2011
1 parent 52c7b1b commit eee8d65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[org.clojars.christophermaier/congomongo "0.1.4-SNAPSHOT"]
[org.jasypt/jasypt "1.7"]
[amalloy/utils "[0.3.7,)"]
[amalloy/ring-gzip-middleware "[0.1.0,)"]
[clj-github "1.0.1"]
[ring "0.3.7"]
[clj-config "0.1.0"]
Expand Down
6 changes: 4 additions & 2 deletions src/foreclojure/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
somnium.congomongo
(ring.middleware (reload :only [wrap-reload])
(stacktrace :only [wrap-stacktrace])
[file-info :only [wrap-file-info]]))
[file-info :only [wrap-file-info]]
[gzip :only [wrap-gzip]]))
(:require [compojure [route :as route] [handler :as handler]]
[sandbar.stateful-session :as session]))

Expand All @@ -32,7 +33,8 @@
identity))
session/wrap-stateful-session
handler/site
wrap-uri-binding))
wrap-uri-binding
wrap-gzip))

(defn run []
(prepare-mongo)
Expand Down

0 comments on commit eee8d65

Please sign in to comment.