Fix FastAPI Header annotation
This commit is contained in:
parent
3fdaec3b47
commit
5040f8dee7
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue