diff options
author | Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> | 2025-03-30 12:29:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-30 12:29:29 (GMT) |
commit | c432d0147bdf1a66604e7a3d6a71660ae79b5f45 (patch) | |
tree | 6ea2c74ba2ad5eb95074fe4accc91d014c27c7bd /Python/bytecodes.c | |
parent | 55150a79cacbce44f50cea128c511782df0ab277 (diff) | |
download | cpython-c432d0147bdf1a66604e7a3d6a71660ae79b5f45.zip cpython-c432d0147bdf1a66604e7a3d6a71660ae79b5f45.tar.gz cpython-c432d0147bdf1a66604e7a3d6a71660ae79b5f45.tar.bz2 |
gh-127794: Validate email header names according to RFC 5322 (#127820)
`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>
Diffstat (limited to 'Python/bytecodes.c')
0 files changed, 0 insertions, 0 deletions