Skip to content

Commit

Permalink
no path by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Apr 11, 2023
1 parent 4a871c1 commit eb363e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/werkzeug/sansio/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def set_cookie(
value: str = "",
max_age: t.Optional[t.Union[timedelta, int]] = None,
expires: t.Optional[t.Union[str, datetime, int, float]] = None,
path: t.Optional[str] = "/",
path: t.Optional[str] = None,
domain: t.Optional[str] = None,
secure: bool = False,
httponly: bool = False,
Expand Down Expand Up @@ -279,7 +279,7 @@ def set_cookie(
def delete_cookie(
self,
key: str,
path: str = "/",
path: t.Optional[str] = None,
domain: t.Optional[str] = None,
secure: bool = False,
httponly: bool = False,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def test_base_response():
("Content-Type", "text/plain; charset=utf-8"),
(
"Set-Cookie",
"foo=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/",
"foo=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0",
),
]

Expand Down

0 comments on commit eb363e4

Please sign in to comment.