Skip to content

Commit 2351c85

Browse files
committed
Update docs to match code: args order
1 parent fba0c78 commit 2351c85

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
@@ -506,16 +506,6 @@ The following options are accepted:
506506
.. versionchanged:: 3.8
507507
Support IPv6 in the ``--bind`` option.
508508

509-
.. option:: --content-type <content_type>
510-
511-
Specifies the Content-Type HTTP header. By default, the server uses the
512-
MIME type ``'application/octet-stream'`` for the ``Content-Type`` header
513-
when the content type cannot be guessed from the URL's extension (if any)::
514-
515-
python -m http.server --content-type text/html
516-
517-
.. versionadded:: next
518-
519509
.. option:: -d, --directory <dir>
520510

521511
Specifies a directory to which it should serve the files. By default,
@@ -536,6 +526,16 @@ The following options are accepted:
536526

537527
.. versionadded:: 3.11
538528

529+
.. option:: --content-type <content_type>
530+
531+
Specifies the Content-Type HTTP header. By default, the server uses the
532+
MIME type ``'application/octet-stream'`` for the ``Content-Type`` header
533+
when the content type cannot be guessed from the URL's extension (if any)::
534+
535+
python -m http.server --content-type text/html
536+
537+
.. versionadded:: next
538+
539539
.. option:: --tls-cert
540540

541541
Specifies a TLS certificate chain for HTTPS connections::

0 commit comments

Comments
 (0)