File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -426,15 +426,15 @@ such as using different index file names by overriding the class attribute
426426:attr: `index_pages `.
427427
428428
429- By default, the server uses the MIME type ``'application/octet-stream' `` for
430- the ``Content-Type `` header when the content type cannot be guessed from the
431- URL's extension (if any). The option ``--default-content-type `` overrides
432- this default with one of the user's choosing::
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)::
433434
434435 python -m http.server --default-content-type text/html
435436
436- .. versionchanged :: next
437- Added the ``--default-content-type `` option.
437+ .. versionadded :: next
438438
439439.. class :: CGIHTTPRequestHandler(request, client_address, server)
440440
You can’t perform that action at this time.
0 commit comments