diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-08-10 05:25:16 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-08-10 05:25:16 (GMT) |
commit | 540f0451d282181449ae42b9325764a690bd6162 (patch) | |
tree | 58f7c4496321eb3798acea3d5399deee8237ca84 /Doc/library | |
parent | 4199bbaf63bf2d017c9fbd3ee5267fc571516d7f (diff) | |
download | cpython-540f0451d282181449ae42b9325764a690bd6162.zip cpython-540f0451d282181449ae42b9325764a690bd6162.tar.gz cpython-540f0451d282181449ae42b9325764a690bd6162.tar.bz2 |
Correct misspellings of ISO-8859
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/http.client.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst index 8954648..a9ca4b0 100644 --- a/Doc/library/http.client.rst +++ b/Doc/library/http.client.rst @@ -227,12 +227,12 @@ HTTPConnection Objects If *body* is specified, the specified data is sent after the headers are finished. It may be a string, a :term:`bytes-like object`, an open :term:`file object`, or an iterable of :term:`bytes-like object`\s. If - *body* is a string, it is encoded as ISO-8851-1, the default for HTTP. If + *body* is a string, it is encoded as ISO-8859-1, the default for HTTP. If it is a bytes-like object the bytes are sent as is. If it is a :term:`file object`, the contents of the file is sent; this file object should support at least the ``read()`` method. If the file object has a ``mode`` attribute, the data returned by the ``read()`` method will be encoded as - ISO-8851-1 unless the ``mode`` attribute contains the substring ``b``, + ISO-8859-1 unless the ``mode`` attribute contains the substring ``b``, otherwise the data returned by ``read()`` is sent as is. If *body* is an iterable, the elements of the iterable are sent as is until the iterable is exhausted. |