Skip to content

Commit

Permalink
Update Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.V…
Browse files Browse the repository at this point in the history
…wmRsp.rst

Co-authored-by: Bénédikt Tran <[email protected]>
  • Loading branch information
srinivasreddy and picnixz authored Dec 23, 2024
1 parent d6549a0 commit 44985a4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
The :meth:`email.message.Message.add_header` method now validates header
field names according to :rfc:`5322` when headers are added via add_header
or __setitem__ and raises a ValueError if they contain invalid characters.
field names according to :rfc:`5322` and raises a :exc:`ValueError` if
they contain invalid characters. A similar argument applies if headers
are added through :meth:`Message.__setitem__ <object.__setitem__>`.

0 comments on commit 44985a4

Please sign in to comment.