Skip to content

Commit

Permalink
Add RFC section
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Jan 2, 2025
1 parent 31edff1 commit 56a77e9
Showing 1 changed file with 4 additions and 3 deletions.
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__>`.

0 comments on commit 56a77e9

Please sign in to comment.