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 @@ -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
You can’t perform that action at this time.
0 commit comments