Update Gitea webhook path

This commit is contained in:
2026-05-06 01:39:46 +02:00
parent 2da8da9f26
commit c9e317f7ca
2 changed files with 2 additions and 2 deletions
@@ -78,7 +78,7 @@ class GiteaSignatureMiddleware(BaseHTTPMiddleware):
:type request: Request
'''
if request.url.path.startswith('/webhook/gitea'):
if request.url.path.startswith('/gitea/webhook'):
signature = request.headers.get('X-Gitea-Signature')
@@ -31,7 +31,7 @@ def make_request(body: bytes, headers = None) -> Request:
scope = {
'type': 'http',
'method': 'POST',
'path': '/webhook/gitea/',
'path': '/gitea/webhook',
'headers': [
(k.lower().encode(), v.encode())
for k, v in (headers or {}).items()