File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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::
You can’t perform that action at this time.
0 commit comments