mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 23:00:20 +00:00
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user