Fix FastAPI Header annotation

This commit is contained in:
Stéphane Bidoul 2025-03-01 13:11:07 +01:00
parent 3fdaec3b47
commit 5040f8dee7

View file

@ -33,7 +33,7 @@ async def receive_payload(
background_tasks: BackgroundTasks, background_tasks: BackgroundTasks,
request: Request, request: Request,
x_github_event: Annotated[str, Header(...)], x_github_event: Annotated[str, Header(...)],
x_hub_signature_256: Annotated[str | None, Header(None)], x_hub_signature_256: Annotated[str | None, Header(...)] = None,
) -> None: ) -> None:
body = await request.body() body = await request.body()
if not _verify_github_signature( if not _verify_github_signature(