summaryrefslogtreecommitdiff
path: root/Doc/library
diff options
context:
space:
mode:
authorAn Long <aisk@users.noreply.github.com>2020-01-09 02:28:14 +0800
committerSteve Dower <steve.dower@python.org>2020-01-08 10:28:14 -0800
commit5907e61a8d4da6d0f11bf1062d6d17484560a15e (patch)
tree863c1b99fe9b5701b401d0b6de451cf703272a71 /Doc/library
parent2e6a8efa837410327b593dc83c57492253b1201e (diff)
downloadcpython-git-5907e61a8d4da6d0f11bf1062d6d17484560a15e.tar.gz
bpo-35292: Avoid calling mimetypes.init when http.server is imported (GH-17822)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/http.server.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
index 5173decb2b..478a5b3147 100644
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -335,11 +335,14 @@ provides three different variants:
.. attribute:: extensions_map
- A dictionary mapping suffixes into MIME types. The default is
- signified by an empty string, and is considered to be
- ``application/octet-stream``. The mapping is used case-insensitively,
+ A dictionary mapping suffixes into MIME types, contains custom overrides
+ for the default system mappings. The mapping is used case-insensitively,
and so should contain only lower-cased keys.
+ .. versionchanged:: 3.9
+ This dictionary is no longer filled with the default system mappings,
+ but only contains overrides.
+
.. attribute:: directory
If not specified, the directory to serve is the current working directory.