generated from jCloud/repository-template
Update Gitea webhook path
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user