gzip fixes.
This commit is contained in:
@@ -35,9 +35,11 @@
|
||||
|
||||
|
||||
(defn gzip-handler []
|
||||
(GzipHandler.)
|
||||
#_(doto (GzipHandler.)
|
||||
(let [gz (GzipHandler.)]
|
||||
(doto gz
|
||||
(.setIncludedMethods (into-array ["GET" "POST" "PUT" "DELETE" "PATCH"]))
|
||||
(.setIncludedMimeTypes (into-array ["text/css"
|
||||
"text/*"
|
||||
"text/plain"
|
||||
"text/javascript"
|
||||
"text/csv"
|
||||
@@ -48,7 +50,8 @@
|
||||
"application/edn"
|
||||
"application/json"
|
||||
"image/svg+xml"]))
|
||||
(.setMinGzipSize 1024)))
|
||||
(.setMinGzipSize 1024))
|
||||
gz))
|
||||
|
||||
(defn configure-jetty [server]
|
||||
(let [stats-handler (StatisticsHandler.)
|
||||
|
||||
Reference in New Issue
Block a user