Added Gzip option and the macaron Gzip middleware, but does not seem to work
This commit is contained in:
1 parent
5833867b44
commit
166ce7d2ae
3 files changed
+6
No files matched your search
@@ -39,6 +39,9 @@ func newMacaron() *macaron.Macaron {
|
||||
m := macaron.New()
|
||||
m.Use(middleware.Logger())
|
||||
m.Use(macaron.Recovery())
|
||||
if setting.EnableGzip {
|
||||
m.Use(macaron.Gziper())
|
||||
}
|
||||
|
||||
mapStatic(m, "", "public")
|
||||
mapStatic(m, "app", "app")
|
||||
|
||||
Reference in new issue
Block a user