From 754b14605a224dbe45d8d43c27df4fd7c38310f8 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 16 May 2022 13:35:25 +0200 Subject: [PATCH] add status route parallel to status.php --- internal/http/services/owncloud/ocdav/ocdav.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/http/services/owncloud/ocdav/ocdav.go b/internal/http/services/owncloud/ocdav/ocdav.go index 140928d799a..7f0a8fde822 100644 --- a/internal/http/services/owncloud/ocdav/ocdav.go +++ b/internal/http/services/owncloud/ocdav/ocdav.go @@ -223,7 +223,7 @@ func (s *svc) Close() error { } func (s *svc) Unprotected() []string { - return []string{"/status.php", "/remote.php/dav/public-files/", "/apps/files/", "/index.php/f/", "/index.php/s/"} + return []string{"/status.php", "/status", "/remote.php/dav/public-files/", "/apps/files/", "/index.php/f/", "/index.php/s/"} } func (s *svc) Handler() http.Handler { @@ -248,7 +248,7 @@ func (s *svc) Handler() http.Handler { head, r.URL.Path = router.ShiftPath(r.URL.Path) log.Debug().Str("head", head).Str("tail", r.URL.Path).Msg("http routing") switch head { - case "status.php": + case "status.php", "status": s.doStatus(w, r) return case "remote.php":