generated from jCloud/repository-template
Bug fix: Remove trailing slash in '/gitea'
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user