From 3ac53dad187989731f66b8c1f3e7636371cdf26a Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Wed, 18 Dec 2024 12:38:27 +0530 Subject: [PATCH] Improve blurb message --- .../Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst b/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst index c5ed88bd2bf61b..bc5fe80624669f 100644 --- a/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst +++ b/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst @@ -1,2 +1,3 @@ The :meth:`email.message.Message.add_header` method now validates header -field names according to :rfc:`5322`. +field names according to :rfc:`5322` when headers are added via add_header +or __setitem__ and raises a ValueError if they contain invalid characters.