diff --git a/services/ocdav/pkg/command/server.go b/services/ocdav/pkg/command/server.go index 7a54eab6b9..cc907562b8 100644 --- a/services/ocdav/pkg/command/server.go +++ b/services/ocdav/pkg/command/server.go @@ -62,7 +62,7 @@ func Server(cfg *config.Config) *cli.Command { ocdav.AllowedOrigins(cfg.HTTP.CORS.AllowedOrigins), ocdav.FilesNamespace(cfg.FilesNamespace), ocdav.WebdavNamespace(cfg.WebdavNamespace), - ocdav.AllowDepthInfinity(cfg.AllowPropfindDepthInfinitiy), + ocdav.AllowDepthInfinity(cfg.AllowPropfindDepthInfinity), ocdav.SharesNamespace(cfg.SharesNamespace), ocdav.Timeout(cfg.Timeout), ocdav.Insecure(cfg.Insecure), diff --git a/services/ocdav/pkg/config/config.go b/services/ocdav/pkg/config/config.go index 732b835e36..ea6a8f6258 100644 --- a/services/ocdav/pkg/config/config.go +++ b/services/ocdav/pkg/config/config.go @@ -36,7 +36,7 @@ type Config struct { Context context.Context `yaml:"-"` Status Status `yaml:"-"` - AllowPropfindDepthInfinitiy bool `yaml:"allow_propfind_depth_infinitiy" env:"OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY" desc:"Allow the use of depth infinity in PROPFINDS. Can cause heavy serverload"` + AllowPropfindDepthInfinity bool `yaml:"allow_propfind_depth_infinity" env:"OCDAV_ALLOW_PROPFIND_DEPTH_INFINITY" desc:"Allow the use of depth infinity in PROPFINDS. Can cause heavy serverload"` } type Tracing struct {