[Python-checkins] cpython (3.4): Address issue 18229 - Explain http.server.BaseHTTPRequestHandler's .headers
senthil.kumaran
python-checkins at python.org
Wed Apr 16 19:56:56 CEST 2014
http://hg.python.org/cpython/rev/104fab0143e9
changeset: 90361:104fab0143e9
branch: 3.4
parent: 90358:d6501421b86b
user: Senthil Kumaran <senthil at uthcode.com>
date: Wed Apr 16 13:56:19 2014 -0400
summary:
Address issue 18229 - Explain http.server.BaseHTTPRequestHandler's .headers attribute further.
Initial patch by Caelyn McAulay.
files:
Doc/library/http.server.rst | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst
--- a/Doc/library/http.server.rst
+++ b/Doc/library/http.server.rst
@@ -81,7 +81,10 @@
Holds an instance of the class specified by the :attr:`MessageClass` class
variable. This instance parses and manages the headers in the HTTP
- request.
+ request. The :func:`~http.client.parse_headers` function from
+ :mod:`http.client` is used to parse the headers and it requires that the
+ HTTP request provide a valid :rfc:`2822` style header.
+
.. attribute:: rfile
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list