Skip to content

Commit 344568a

Browse files
authored
remove hyperlink
1 parent f8924d8 commit 344568a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/library/http.cookies.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ The following example demonstrates how to use the :mod:`http.cookies` module.
301301
Handling of Duplicate Cookies
302302
-----------------------------
303303

304-
As per `RFC 6265`_, the ``http.cookies`` module has been updated to better align with standard practices for handling duplicate cookies. Previously, if multiple cookies with the same name were encountered, the last value provided would be retained. With the update, the first value encountered for a given cookie name is preserved, reflecting the behavior commonly expected by web servers and user agents.
304+
As per ``RFC 6265``, the ``http.cookies`` module has been updated to better align with standard practices for handling duplicate cookies. Previously, if multiple cookies with the same name were encountered, the last value provided would be retained. With the update, the first value encountered for a given cookie name is preserved, reflecting the behavior commonly expected by web servers and user agents.
305305

306306
.. note::
307307
This modification affects how ``SimpleCookie`` parses cookie strings containing multiple instances of the same cookie name. Now, the first instance is retained, which is particularly relevant when cookies are set with differing paths or domains, where the order in the HTTP header can imply precedence.
@@ -318,5 +318,4 @@ Example Usage:
318318
# The value of the first cookie is retained
319319
assert c['name'].value == 'value1'
320320
321-
.. _RFC 6265: https://datatracker.ietf.org/doc/html/rfc6265
322321

0 commit comments

Comments
 (0)