Skip to content

Commit afe8ebb

Browse files
committed
moved to options section
1 parent 6fa0a6d commit afe8ebb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Doc/library/http.server.rst

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

428428

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)::
434-
435-
python -m http.server --default-content-type text/html
436-
437-
.. versionadded:: next
438-
439429
.. class:: CGIHTTPRequestHandler(request, client_address, server)
440430

441431
This class is used to serve either files or output of CGI scripts from the
@@ -541,6 +531,16 @@ The following options are accepted:
541531

542532
.. versionadded:: 3.11
543533

534+
.. option:: --default-content-type <content_type>
535+
536+
Specifies the Content-Type HTTP header. By default, the server uses the
537+
MIME type ``'application/octet-stream'`` for the ``Content-Type`` header
538+
when the content type cannot be guessed from the URL's extension (if any)::
539+
540+
python -m http.server --default-content-type text/html
541+
542+
.. versionadded:: next
543+
544544
.. option:: --cgi
545545

546546
:class:`CGIHTTPRequestHandler` can be enabled in the command line by passing

0 commit comments

Comments
 (0)