From df10baf339c8277608e876dbe994b8e7d67b3e81 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Mon, 24 Jul 2023 15:46:27 +0200 Subject: [PATCH] fix typo Signed-off-by: Christian Richter --- services/ocdav/pkg/command/server.go | 2 +- services/ocdav/pkg/config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {