# HG changeset patch # Parent c49084a28969a690973bba76f14421f359349e11 Issue #27716: Document how HTTP header fields are transformed to text diff -r c49084a28969 -r a6c10710c0ee Doc/library/http.client.rst --- a/Doc/library/http.client.rst Sat Sep 17 07:59:32 2016 +0000 +++ b/Doc/library/http.client.rst Sun Sep 18 01:51:50 2016 +0000 @@ -405,6 +405,10 @@ body. The response is an iterable object and can be used in a with statement. +Header field values are decoded to text :class:`str` objects using +ISO-8859-1. They may be encoded back with ISO-8895-1 to produce the +original bytes sent in the response. + .. versionchanged:: 3.5 The :class:`io.BufferedIOBase` interface is now implemented and all of its reader operations are supported.