Migrate Compress from bool to struct

This commit is contained in:
Jean-Baptiste Doumenjou 2018-08-02 17:14:03 +02:00 committed by Traefiker Bot
parent 43d22d7a2f
commit c159e316be
6 changed files with 19 additions and 12 deletions

View file

@ -158,7 +158,7 @@ func (s *Server) buildServerEntryPointMiddlewares(serverEntryPointName string, s
serverMiddlewares = append(serverMiddlewares, s.wrapNegroniHandlerWithAccessLog(authMiddleware, fmt.Sprintf("Auth for entrypoint %s", serverEntryPointName)))
}
if s.entryPoints[serverEntryPointName].Configuration.Compress {
if s.entryPoints[serverEntryPointName].Configuration.Compress != nil {
serverMiddlewares = append(serverMiddlewares, &middlewares.Compress{})
}