Skip to content

Commit a8c3b77

Browse files
committed
Explain missing/unrecognized content type
as suggested by @dstufft in #258 (comment)
1 parent 4b17b0b commit a8c3b77

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎source/specifications.rst‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,17 @@ Example::
125125

126126
Description-Content-Type: text/markdown; charset=UTF-8; variant=Original
127127

128-
If a ``Description-Content-Type`` is not specified or it's set to an
129-
unrecognized value, then the assumed content type is ``text/x-rst;
130-
charset=UTF-8``.
128+
If a ``Description-Content-Type`` is not specified, then applications should
129+
attempt to render it as ``text/x-rst; charset=UTF-8`` and fall back to
130+
``text/plain`` if it is not valid rst.
131131

132-
If the subtype is ``markdown`` and ``variant`` is not specified or is set to
133-
an unrecognized value, then the assumed ``variant`` is ``CommonMark``.
132+
If a ``Description-Content-Type`` is an unrecognized value, then the assumed
133+
content type is ``text/plain`` (Although PyPI will probably reject anything
134+
with an unrecognized value).
135+
136+
If the ``Description-Content-Type` is ``text/markdown`` and ``variant`` is not
137+
specified or is set to an unrecognized value, then the assumed ``variant`` is
138+
``CommonMark``.
134139

135140

136141
Version Specifiers

0 commit comments

Comments
 (0)