response.content

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-26 18:28:11 -05:00
parent 45ccce5c78
commit 213164b7f7
+1 -1
View File
@@ -241,7 +241,7 @@ class Session(requests.Session):
if not response.encoding:
response.encoding = DEFAULT_ENCODING
response.html = HTML(url=response.url, html=response.text, default_encoding=response.encoding)
response.html = HTML(url=response.url, html=response.content, default_encoding=response.encoding)
return response