@@ -110,7 +110,7 @@ provides three different variants:
110110
111111 .. attribute :: path
112112
113- Contains the request path. If query component of the URL is present,
113+ Contains the request path. If the query component of the URL is present,
114114 then ``path `` includes the query. Using the terminology of :rfc: `3986 `,
115115 ``path `` here includes ``hier-part `` and the ``query ``.
116116
@@ -160,7 +160,7 @@ provides three different variants:
160160 Specifies a format string that should be used by :meth: `send_error ` method
161161 for building an error response to the client. The string is filled by
162162 default with variables from :attr: `responses ` based on the status code
163- that passed to :meth: `send_error `.
163+ passed to :meth: `send_error `.
164164
165165 .. attribute :: error_content_type
166166
@@ -208,8 +208,8 @@ provides three different variants:
208208 .. method :: handle_expect_100()
209209
210210 When an HTTP/1.1 conformant server receives an ``Expect: 100-continue ``
211- request header it responds back with a ``100 Continue `` followed by ``200
212- OK `` headers.
211+ request header it responds with a ``100 Continue `` followed by ``200 OK ``
212+ headers.
213213 This method can be overridden to raise an error if the server does not
214214 want the client to continue. For example, the server can choose to send ``417
215215 Expectation Failed `` as a response header and ``return False ``.
@@ -265,8 +265,8 @@ provides three different variants:
265265 .. method :: send_response_only(code, message=None)
266266
267267 Sends the response header only, used for the purposes when ``100
268- Continue `` response is sent by the server to the client. The headers not
269- buffered and sent directly the output stream.If the *message * is not
268+ Continue `` response is sent by the server to the client. The headers are
269+ not buffered and sent directly the output stream. If the *message * is not
270270 specified, the HTTP message corresponding the response *code * is sent.
271271
272272 This method does not reject *message * containing CRLF sequences.
@@ -308,7 +308,7 @@ provides three different variants:
308308 to create custom error logging mechanisms. The *format * argument is a
309309 standard printf-style format string, where the additional arguments to
310310 :meth: `log_message ` are applied as inputs to the formatting. The client
311- ip address and current date and time are prefixed to every message logged.
311+ IP address and current date and time are prefixed to every message logged.
312312
313313 .. method :: version_string()
314314
@@ -443,9 +443,8 @@ provides three different variants:
443443 Add :func: `mimetypes.guess_file_type ` as a fallback.
444444
445445
446- The :class: `SimpleHTTPRequestHandler ` class can be used in the following
447- manner in order to create a very basic webserver serving files relative to
448- the current directory::
446+ The :class: `SimpleHTTPRequestHandler ` class can be used to create a very basic
447+ webserver serving files relative to the current directory as follows::
449448
450449 import http.server
451450 import socketserver
@@ -610,13 +609,13 @@ Security considerations
610609.. index :: pair: http.server; security
611610
612611:class: `SimpleHTTPRequestHandler ` will follow symbolic links when handling
613- requests, this makes it possible for files outside of the specified directory
612+ requests which makes it possible for files outside of the specified directory
614613to be served.
615614
616615Methods :meth: `BaseHTTPRequestHandler.send_header ` and
617616:meth: `BaseHTTPRequestHandler.send_response_only ` assume sanitized input
618617and do not perform input validation such as checking for the presence of CRLF
619- sequences. Untrusted input may result in HTTP Header injection attacks.
618+ sequences. Untrusted input may result in HTTP header injection attacks.
620619
621620Earlier versions of Python did not scrub control characters from the
622621log messages emitted to stderr from ``python -m http.server `` or the
0 commit comments