forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31edff1
commit 56a77e9
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
The :meth:`email.message.Message.add_header` method now validates header | ||
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__>`. | ||
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__>`. |