request-response: update the consequences of str(b'')

This commit is contained in:
Adrián Chaves 2020-05-09 15:54:31 +02:00
parent c6746f0e38
commit e07708e374
1 changed files with 1 additions and 2 deletions

View File

@ -786,8 +786,7 @@ TextResponse objects
.. note::
``str(response.body)`` is not a correct way to convert the response
body into a string: you would be using the system default encoding
(typically ``ascii``) instead of the response encoding.
body into a string: ``str(b'')`` returns ``"b''"``.
.. attribute:: TextResponse.encoding