Skip to content

Add .rst to mimetypes #101137

Closed
Closed
@tucked

Description

@tucked
>>> import mimetypes
>>> mimetypes.guess_type("README.rst", strict=False)
(None, None)

In the python:3.11 Docker image, we get a vanity type:

>>> mimetypes.guess_type("README.rst", strict=False)
('text/prs.fallenstein.rst', None)

I think most people would expect text/x-rst. Even better would be to get it registered!

Linked PRs

Metadata

Metadata

Assignees

Labels

stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions