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

Skip to content

Commit df7070a

Browse files
committed
issue2193 - Update docs about the legal characters allowed in Cookie name
1 parent 6c802b8 commit df7070a

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Doc/library/http.cookies.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@ 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+
28+
.. versionchanged:: 3.3
29+
Allowed ':' as a valid Cookie name character.
30+
2231

2332
.. note::
2433

0 commit comments

Comments
 (0)