Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a gzip middleware to improve transfer speed some more

  • Loading branch information...
commit eee8d658003d7eeab01c530c62c688c62c92c9e7 1 parent 52c7b1b
@amalloy amalloy authored
Showing with 5 additions and 2 deletions.
  1. +1 −0  project.clj
  2. +4 −2 src/foreclojure/core.clj
View
1  project.clj
@@ -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"]
View
6 src/foreclojure/core.clj
@@ -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]))
@@ -32,7 +33,8 @@
identity))
session/wrap-stateful-session
handler/site
- wrap-uri-binding))
+ wrap-uri-binding
+ wrap-gzip))
(defn run []
(prepare-mongo)
Please sign in to comment.
Something went wrong with that request. Please try again.