diff options
author | Julien Palard <julien@palard.fr> | 2019-03-29 02:15:34 (GMT) |
---|---|---|
committer | Carol Willing <carolcode@willingconsulting.com> | 2019-03-29 02:15:34 (GMT) |
commit | 9e30fbac019d9c0a31d444a711e845c7e883caf5 (patch) | |
tree | 54ba71c5ae02b777b67b5a52872c05e2c032b747 | |
parent | 081158e3ba20dfa95d09cd652a44e271b95eb14c (diff) | |
download | cpython-9e30fbac019d9c0a31d444a711e845c7e883caf5.zip cpython-9e30fbac019d9c0a31d444a711e845c7e883caf5.tar.gz cpython-9e30fbac019d9c0a31d444a711e845c7e883caf5.tar.bz2 |
bpo-36064: Clarify allowed data types for urllib.request.Request. (GH-11990)
-rw-r--r-- | Doc/library/urllib.request.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 289bfca..f56da1b 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -192,8 +192,8 @@ The following classes are provided: *data* must be an object specifying additional data to send to the server, or ``None`` if no such data is needed. Currently HTTP requests are the only ones that use *data*. The supported object - types include bytes, file-like objects, and iterables. If no - ``Content-Length`` nor ``Transfer-Encoding`` header field + types include bytes, file-like objects, and iterables of bytes-like objects. + If no ``Content-Length`` nor ``Transfer-Encoding`` header field has been provided, :class:`HTTPHandler` will set these headers according to the type of *data*. ``Content-Length`` will be used to send bytes objects, while ``Transfer-Encoding: chunked`` as specified in |