Skip to content

Commit

Permalink
Accept None on set_cookie(path=...) (#2612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Jul 20, 2024
1 parent e0ec0d9 commit a01631d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def set_cookie(
value: str = "",
max_age: int | None = None,
expires: datetime | str | int | None = None,
path: str = "/",
path: str | None = "/",
domain: str | None = None,
secure: bool = False,
httponly: bool = False,
Expand Down

0 comments on commit a01631d

Please sign in to comment.