Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a42665f

Browse files
committed
issue2193 - Update 3.2 docs about legal characters allowed in Cookie name
1 parent bcc17ee commit a42665f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Doc/library/http.cookies.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ cookie value.
1717

1818
The module formerly strictly applied the parsing rules described in the
1919
:rfc:`2109` and :rfc:`2068` specifications. It has since been discovered that
20-
MSIE 3.0x doesn't follow the character rules outlined in those specs. As a
21-
result, the parsing rules used are a bit less strict.
20+
MSIE 3.0x doesn't follow the character rules outlined in those specs and also
21+
many current day browsers and servers have relaxed parsing rules when comes to
22+
Cookie handling. As a result, the parsing rules used are a bit less strict.
23+
24+
The character set, :data:`string.ascii_letters`, :data:`string.digits` and
25+
``!#$%&'*+-.^_`|~`` denote the set of valid characters allowed by this module
26+
in Cookie name (as :attr:`~Morsel.key`).
27+
2228

2329
.. note::
2430

0 commit comments

Comments
 (0)