fix: fix for avatar images when gzip is turned on, fixes #5952

This commit is contained in:
Torkel Ödegaard
2017-11-17 13:13:58 +01:00
parent 7ccc8ae298
commit 303e3de488
2 changed files with 18 additions and 13 deletions

View File

@@ -320,8 +320,8 @@ func (hs *HttpServer) registerRoutes() {
r.Any("/api/gnet/*", reqSignedIn, ProxyGnetRequest)
// Gravatar service.
avt := avatar.CacheServer()
r.Get("/avatar/:hash", avt.ServeHTTP)
avatarCacheServer := avatar.NewCacheServer()
r.Get("/avatar/:hash", avatarCacheServer.Handler)
// Websocket
r.Any("/ws", hs.streamManager.Serve)