summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/werkzeug/sansio/response.py4
-rw-r--r--tests/test_wrappers.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/werkzeug/sansio/response.py b/src/werkzeug/sansio/response.py
index 7fb264f6..8c53f41b 100644
--- a/src/werkzeug/sansio/response.py
+++ b/src/werkzeug/sansio/response.py
@@ -228,7 +228,7 @@ class Response:
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,
@@ -279,7 +279,7 @@ class Response:
def delete_cookie(
self,
key: str,
- path: str = "/",
+ path: t.Optional[str] = None,
domain: t.Optional[str] = None,
secure: bool = False,
httponly: bool = False,
diff --git a/tests/test_wrappers.py b/tests/test_wrappers.py
index 8a91aefc..2e257cea 100644
--- a/tests/test_wrappers.py
+++ b/tests/test_wrappers.py
@@ -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",
),
]