From 213164b7f7523757d603efdbf0775e49ee368499 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 Feb 2018 18:28:11 -0500 Subject: [PATCH] response.content Signed-off-by: Kenneth Reitz --- requests_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests_html.py b/requests_html.py index e8429c6..b0855cb 100644 --- a/requests_html.py +++ b/requests_html.py @@ -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