|
10 | 10 |
|
11 | 11 | .. towncrier release notes start
|
12 | 12 |
|
| 13 | +3.12.7rc0 (2025-06-02) |
| 14 | +====================== |
| 15 | + |
| 16 | +Bug fixes |
| 17 | +--------- |
| 18 | + |
| 19 | +- Fixed cookie parsing to be more lenient when handling cookies with special characters |
| 20 | + in names or values. Cookies with characters like ``{``, ``}``, and ``/`` in names are now |
| 21 | + accepted instead of causing a :exc:`~http.cookies.CookieError` and 500 errors. Additionally, |
| 22 | + cookies with mismatched quotes in values are now parsed correctly, and quoted cookie |
| 23 | + values are now handled consistently whether or not they include special attributes |
| 24 | + like ``Domain``. Also fixed :class:`~aiohttp.CookieJar` to ensure shared cookies (domain="", path="") |
| 25 | + respect the ``quote_cookie`` parameter, making cookie quoting behavior consistent for |
| 26 | + all cookies -- by :user:`bdraco`. |
| 27 | + |
| 28 | + |
| 29 | + *Related issues and pull requests on GitHub:* |
| 30 | + :issue:`2683`, :issue:`5397`, :issue:`7993`, :issue:`11112`. |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +- Fixed an issue where cookies with duplicate names but different domains or paths |
| 35 | + were lost when updating the cookie jar. The :class:`~aiohttp.ClientSession` |
| 36 | + cookie jar now correctly stores all cookies even if they have the same name but |
| 37 | + different domain or path, following the :rfc:`6265#section-5.3` storage model -- by :user:`bdraco`. |
| 38 | + |
| 39 | + Note that :attr:`ClientResponse.cookies <aiohttp.ClientResponse.cookies>` returns |
| 40 | + a :class:`~http.cookies.SimpleCookie` which uses the cookie name as a key, so |
| 41 | + only the last cookie with each name is accessible via this interface. All cookies |
| 42 | + can be accessed via :meth:`ClientResponse.headers.getall('Set-Cookie') |
| 43 | + <multidict.MultiDictProxy.getall>` if needed. |
| 44 | + |
| 45 | + |
| 46 | + *Related issues and pull requests on GitHub:* |
| 47 | + :issue:`4486`, :issue:`11105`, :issue:`11106`. |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +Miscellaneous internal changes |
| 53 | +------------------------------ |
| 54 | + |
| 55 | +- Avoided creating closed futures in ``ResponseHandler`` that will never be awaited -- by :user:`bdraco`. |
| 56 | + |
| 57 | + |
| 58 | + *Related issues and pull requests on GitHub:* |
| 59 | + :issue:`11107`. |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +- Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections -- by :user:`bdraco`. |
| 64 | + |
| 65 | + |
| 66 | + *Related issues and pull requests on GitHub:* |
| 67 | + :issue:`11114`. |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +---- |
| 73 | + |
| 74 | + |
13 | 75 | 3.12.6 (2025-05-31)
|
14 | 76 | ===================
|
15 | 77 |
|
|
0 commit comments