Skip to content

Commit 56a77e9

Browse files
committed
Add RFC section
1 parent 31edff1 commit 56a77e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
The :meth:`email.message.Message.add_header` method now validates header
2-
field names according to :rfc:`5322` and raises a :exc:`ValueError` if
3-
they contain invalid characters. A similar argument applies if headers
4-
are added through :meth:`Message.__setitem__ <object.__setitem__>`.
2+
field names according to :rfc:`RFC 5322 section 3.6.8 <5322#section-3.6.8>`
3+
and raises a :exc:`ValueError` if they contain invalid characters. A similar
4+
argument applies if headers are added through :meth:`Message.__setitem__
5+
<object.__setitem__>`.

0 commit comments

Comments
 (0)