diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-06-08 08:29:13 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-06-08 08:29:13 (GMT) |
commit | e42e129ebec9918adcae6f93b18bb6652f29c3fe (patch) | |
tree | 7d7de12f52be66a4e944010453b18b07197e3d7d /Doc/library | |
parent | 4e50553823c16a65d80f6734b4ac303c18640380 (diff) | |
download | cpython-e42e129ebec9918adcae6f93b18bb6652f29c3fe.zip cpython-e42e129ebec9918adcae6f93b18bb6652f29c3fe.tar.gz cpython-e42e129ebec9918adcae6f93b18bb6652f29c3fe.tar.bz2 |
Issue #25738: Don’t send message body for 205 Reset Content
Patch by Susumu Koshiba.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/http.server.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index e0b2874..05ad2d7 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -191,7 +191,9 @@ of which this module provides three different variants: a complete set of headers, as the response body. The :attr:`responses` attribute holds the default values for *message* and *explain* that will be used if no value is provided; for unknown codes the default value - for both is the string ``???``. + for both is the string ``???``. The body will be empty if the method is + HEAD or the response code is one of the following: ``1xx``, + ``204 No Content``, ``205 Reset Content``, ``304 Not Modified``. .. versionchanged:: 3.4 The error response includes a Content-Length header. |