Skip to content

Commit aaafba8

Browse files
authored
Update docs formatting and caps
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 1cb71b8 commit aaafba8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/library/http.server.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ instantiation, of which this module provides three different variants:
209209

210210
.. attribute:: default_content_type
211211

212-
Specifies the content-type header value sent when the MIME type
212+
Specifies the Content-Type header value sent when the MIME type
213213
cannot be guessed from the file extension of the requested URL.
214214
By default, it is set to ``'application/octet-stream'``.
215215

@@ -530,7 +530,9 @@ The following options are accepted:
530530

531531
Specifies the Content-Type HTTP header. By default, the server uses the
532532
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)::
533+
when the content type cannot be guessed from the URL's extension (if any):
534+
535+
.. code-block:: bash
534536
535537
python -m http.server --content-type text/html
536538

0 commit comments

Comments
 (0)