diff options
author | David Lord <davidism@gmail.com> | 2023-03-09 11:23:49 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2023-03-09 12:37:09 -0800 |
commit | dbdc9621005f3c28288a54f695bd782f9668ccb5 (patch) | |
tree | 329eae63f9ee06408c0aa4e44aef57df1d0c6108 /CHANGES.rst | |
parent | f9906fa6d83dd668f9214acef458419756bbc062 (diff) | |
download | werkzeug-dbdc9621005f3c28288a54f695bd782f9668ccb5.tar.gz |
refactor parse and dump header functions
deprecate some unused parameters and behaviors
deprecate passing bytes
handle quoting empty string
dumping options skips None values
unquote inline if calling the function would do some redundant work
parse dict handles values with charsets
Diffstat (limited to 'CHANGES.rst')
-rw-r--r-- | CHANGES.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 1f49ad50..f9b91ed0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -35,8 +35,17 @@ Unreleased - ``parse_options_header`` is 2-3 times faster. It conforms to :rfc:`9110`, some invalid parts that were previously accepted are now ignored. :issue:`1628` - The ``is_filename`` parameter to ``unquote_header_value`` is deprecated. :pr:`2614` +- Deprecate the ``extra_chars`` parameter and passing bytes to ``quote_header_value``, + the ``allow_token`` parameter to ``dump_header``, and the ``cls`` parameter and + passing bytes to ``parse_dict_header``. :pr:`2618` - Improve ``parse_accept_header`` implementation. Parse according to :rfc:`9110`. Discard items with invalid ``q`` values. :issue:`1623` +- ``quote_header_value`` quotes the empty string. :pr:`2618` +- ``dump_options_header`` skips ``None`` values rather than using a bare key. + :pr:`2618` +- ``dump_header`` and ``dump_options_header`` will not quote a value if the key ends + with an asterisk ``*``. +- ``parse_dict_header`` will decode values with charsets. :pr:`2618` Version 2.2.3 |