Skip to content

Commit 49948c2

Browse files
committed
Improve wording/formatting
1 parent a6a17ca commit 49948c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/http.server.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ instantiation, of which this module provides three different variants:
9999

100100
This class is used to handle the HTTP requests that arrive at the server. By
101101
itself, it cannot respond to any actual HTTP requests; it must be subclassed
102-
to handle each request method (e.g. GET or POST).
102+
to handle each request method (for example, ``'GET'`` or ``'POST'``).
103103
:class:`BaseHTTPRequestHandler` provides a number of class and instance
104104
variables, and methods for use by subclasses.
105105

@@ -241,7 +241,7 @@ instantiation, of which this module provides three different variants:
241241
request header it responds back with a ``100 Continue`` followed by ``200
242242
OK`` headers.
243243
This method can be overridden to raise an error if the server does not
244-
want the client to continue. For e.g. server can choose to send ``417
244+
want the client to continue. For example, the server can choose to send ``417
245245
Expectation Failed`` as a response header and ``return False``.
246246

247247
.. versionadded:: 3.2
@@ -575,7 +575,7 @@ to be served.
575575

576576
Methods :meth:`BaseHTTPRequestHandler.send_header` and
577577
:meth:`BaseHTTPRequestHandler.send_response_only` assume sanitized input
578-
and does not perform input validation such as checking for the presence of CRLF
578+
and do not perform input validation such as checking for the presence of CRLF
579579
sequences. Untrusted input may result in HTTP Header injection attacks.
580580

581581
Earlier versions of Python did not scrub control characters from the

0 commit comments

Comments
 (0)