summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorSrinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>2025-03-30 12:29:29 (GMT)
committerGitHub <noreply@github.com>2025-03-30 12:29:29 (GMT)
commitc432d0147bdf1a66604e7a3d6a71660ae79b5f45 (patch)
tree6ea2c74ba2ad5eb95074fe4accc91d014c27c7bd /Python/bytecodes.c
parent55150a79cacbce44f50cea128c511782df0ab277 (diff)
downloadcpython-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