mirror of https://github.com/python/cpython.git
![]() `email.message.Message` objects now validate header names specified via `__setitem__` or `add_header` according to RFC 5322, §2.2 [1]. In particular, callers should expect a ValueError to be raised for invalid header names. [1]: https://datatracker.ietf.org/doc/html/rfc5322#section-2.2 --------- Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: R. David Murray <rdmurray@bitdance.com> |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
__main__.py | ||
test__encoded_words.py | ||
test__header_value_parser.py | ||
test_asian_codecs.py | ||
test_contentmanager.py | ||
test_defect_handling.py | ||
test_email.py | ||
test_generator.py | ||
test_headerregistry.py | ||
test_inversion.py | ||
test_message.py | ||
test_parser.py | ||
test_pickleable.py | ||
test_policy.py | ||
test_utils.py | ||
torture_test.py |