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 Jan 6, 2025
1 parent 56a77e9 commit f2bbb92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The :meth:`email.message.Message.add_header` method now validates header
field names according to :rfc:`RFC 5322 section 3.6.8 <5322#section-3.6.8>`
field names according to :rfc:`RFC 5322, Section 3.6.8 <5322#section-3.6.8>`
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 f2bbb92

Please sign in to comment.