Skip to content

Commit a2a9984

Browse files
authored
[3.6] bpo-30160: Clarify intended usage of wfile (gh-1300) (GH-1793)
The library does not enforce compliance with the HTTP protocol, so violations are not technically disallowed. Extend the stream's description to avoid suggesting that intentional protocol violations are not supported. (cherry picked from commit a083c8e)
1 parent c3454f0 commit a2a9984

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/http.server.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ of which this module provides three different variants:
105105

106106
Contains the output stream for writing a response back to the
107107
client. Proper adherence to the HTTP protocol must be used when writing to
108-
this stream.
108+
this stream in order to achieve successful interoperation with HTTP
109+
clients.
109110

110111
.. versionchanged:: 3.6
111112
This is an :class:`io.BufferedIOBase` stream.

0 commit comments

Comments
 (0)