We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6549a0 commit 44985a4Copy full SHA for 44985a4
Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst
@@ -1,3 +1,4 @@
1
The :meth:`email.message.Message.add_header` method now validates header
2
-field names according to :rfc:`5322` when headers are added via add_header
3
-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
4
+are added through :meth:`Message.__setitem__ <object.__setitem__>`.
0 commit comments