Data source proxy: Fixed issue with Gzip enabled and data source proxy, Fixes #1675

This commit is contained in:
Torkel Ödegaard
2015-04-01 09:00:17 +02:00
parent 5422d13607
commit c3fa68ade8
3 changed files with 23 additions and 1 deletions

View File

@@ -42,8 +42,9 @@ func newMacaron() *macaron.Macaron {
m := macaron.New()
m.Use(middleware.Logger())
m.Use(macaron.Recovery())
if setting.EnableGzip {
m.Use(macaron.Gziper())
m.Use(middleware.Gziper())
}
mapStatic(m, "", "public")