Bug fix: Remove trailing slash in '/gitea'

This commit is contained in:
2026-05-08 17:42:27 +02:00
parent c26291bb1c
commit 0e23b4d349
@@ -47,7 +47,7 @@ class GiteaCheckEnabledMiddleware(BaseHTTPMiddleware):
:type request: Request :type request: Request
''' '''
if request.url.path.startswith('/gitea/'): if request.url.path.startswith('/gitea'):
if self.configuration.gitea.enabled not in ('true', 'yes', 't', 'y'): if self.configuration.gitea.enabled not in ('true', 'yes', 't', 'y'):
if self.logger is not None: if self.logger is not None: