Skip to content

Commit 4388da5

Browse files
committed
Add to What's New
1 parent 1c4496d commit 4388da5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,12 @@ http.server
832832
<using-on-controlling-color>`.
833833
(Contributed by Hugo van Kemenade in :gh:`146292`.)
834834

835+
* Added :attr:`~http.server.SimpleHTTPRequestHandler.default_content_type`
836+
and the :option:`--content-type <http.server --content-type>` command-line
837+
option to allow customizing the default ``Content-Type`` header
838+
for files with unknown extensions.
839+
(Contributed by John Comeau and Hugo van Kemenade in :gh:`113471`.)
840+
835841

836842
inspect
837843
-------

0 commit comments

Comments
 (0)