We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee3295 commit fba0c78Copy full SHA for fba0c78
Doc/library/http.server.rst
@@ -506,13 +506,13 @@ The following options are accepted:
506
.. versionchanged:: 3.8
507
Support IPv6 in the ``--bind`` option.
508
509
-.. option:: --default-content-type <content_type>
+.. 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 --default-content-type text/html
+ python -m http.server --content-type text/html
516
517
.. versionadded:: next
518
0 commit comments