Skip to content

Commit 1662667

Browse files
Update Doc/library/http.server.rst
Co-authored-by: donBarbos <[email protected]>
1 parent 259e9b5 commit 1662667

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/http.server.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,15 @@ such as using different index file names by overriding the class attribute
426426
:attr:`index_pages`.
427427

428428

429-
By default, the server uses the MIME type ``'application/octet-stream'`` for
430-
the ``Content-Type`` header when the content type cannot be guessed from the
431-
URL's extension (if any). The option ``--default-content-type`` overrides
432-
this default with one of the user's choosing::
429+
.. option:: -default-content-type <content_type>
430+
431+
Specifies the Content-Type HTTP header. By default, the server uses the
432+
MIME type ``'application/octet-stream'`` for the ``Content-Type`` header
433+
when the content type cannot be guessed from the URL's extension (if any)::
433434

434435
python -m http.server --default-content-type text/html
435436

436-
.. versionchanged:: next
437-
Added the ``--default-content-type`` option.
437+
.. versionadded:: next
438438

439439
.. class:: CGIHTTPRequestHandler(request, client_address, server)
440440

0 commit comments

Comments
 (0)