forked from SW/traefik
Conditionnal compression based on Content-Type
This commit is contained in:
committed by
Traefiker Bot
parent
1f39083555
commit
3410541a2f
@@ -168,7 +168,7 @@ func (b *Builder) buildConstructor(ctx context.Context, middlewareName string) (
|
||||
return nil, badConf
|
||||
}
|
||||
middleware = func(next http.Handler) (http.Handler, error) {
|
||||
return compress.New(ctx, next, middlewareName)
|
||||
return compress.New(ctx, next, *config.Compress, middlewareName)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user