From 0a78608fedbed5874dfee56ac6a2bff6e1da2616 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 Feb 2018 18:31:58 -0500 Subject: [PATCH] .text 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 b0855cb..e8429c6 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.content, default_encoding=response.encoding) + response.html = HTML(url=response.url, html=response.text, default_encoding=response.encoding) return response