cpython/Misc/NEWS.d/next/Library/2024-07-27-16-10-41.gh-issu...

6 lines
307 B
ReStructuredText

:mod:`email` headers with embedded newlines are now quoted on output. The
:mod:`~email.generator` will now refuse to serialize (write) headers that
are unsafely folded or delimited; see
:attr:`~email.policy.Policy.verify_generated_headers`. (Contributed by Bas
Bloemsaat and Petr Viktorin in :gh:`121650`.)