]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Accept `None` on `set_cookie(path=...)` (#2612)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sat, 20 Jul 2024 09:02:20 +0000 (11:02 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Jul 2024 09:02:20 +0000 (03:02 -0600)
starlette/responses.py

index a6975747b6d435a71f10f54b181c83ff5df34bf9..bd66f897efd7000d81d790f17e95894a2d0d62e2 100644 (file)
@@ -94,7 +94,7 @@ class Response:
         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,