summaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2023-04-03 11:29:42 -0700
committerDavid Lord <davidism@gmail.com>2023-04-03 12:08:35 -0700
commitf78174827c725a8ab297b338d44d98f95a666347 (patch)
tree419dd6a2c92195ca727387cebf6d936058acf45f /CHANGES.rst
parente31514ff85c6f8d842359919974f058514244639 (diff)
downloadwerkzeug-f78174827c725a8ab297b338d44d98f95a666347.tar.gz
refactor test client cookie implementation
no longer use http.cookiejar add get_cookie add properties for decoded key and value
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index b894f2f2..44fef526 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -73,6 +73,20 @@ Unreleased
strips off a leading dot.
- ``dump_cookie`` does not set ``path="/"`` unnecessarily by default.
+- Refactor the test client cookie implementation. :issue:`1060, 1680`
+
+ - The ``cookie_jar`` attribute is deprecated. ``http.cookiejar`` is no longer used
+ for storage.
+ - Domain and path matching is used when sending cookies in requests. The
+ ``domain`` and ``path`` parameters default to ``localhost`` and ``/``.
+ - Added a ``get_cookie`` method to inspect cookies.
+ - Cookies have ``decoded_key`` and ``decoded_value`` attributes to match what the
+ app sees rather than the encoded values a client would see.
+ - The first positional ``server_name`` parameter to ``set_cookie`` and
+ ``delete_cookie`` is deprecated. Use the ``domain`` parameter instead.
+ - Other parameters to ``delete_cookie`` besides ``domain``, ``path``, and
+ ``value`` are deprecated.
+
- If ``request.max_content_length`` is set, it is checked immediately when accessing
the stream, and while reading from the stream in general, rather than only during
form parsing. :issue:`1513`