feat(traefik): DisplayName defaults as the middleware name

This commit is contained in:
Alexis Couvreur
2022-10-28 05:18:27 +00:00
parent 8a9435473f
commit cd1a0c41d4
3 changed files with 10 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ type SablierMiddleware struct {
// New function creates the configuration
func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) {
req, err := config.BuildRequest()
req, err := config.BuildRequest(name)
if err != nil {
return nil, err