Skip to content

Commit fba0c78

Browse files
committed
Update docs to match code: --content-type
1 parent 9ee3295 commit fba0c78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/http.server.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,13 @@ The following options are accepted:
506506
.. versionchanged:: 3.8
507507
Support IPv6 in the ``--bind`` option.
508508

509-
.. option:: --default-content-type <content_type>
509+
.. option:: --content-type <content_type>
510510

511511
Specifies the Content-Type HTTP header. By default, the server uses the
512512
MIME type ``'application/octet-stream'`` for the ``Content-Type`` header
513513
when the content type cannot be guessed from the URL's extension (if any)::
514514

515-
python -m http.server --default-content-type text/html
515+
python -m http.server --content-type text/html
516516

517517
.. versionadded:: next
518518

0 commit comments

Comments
 (0)