Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
  • Loading branch information
kennethreitz committed Feb 27, 2018
1 parent fff407e commit aea3970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def _async_render(url: str):
except TimeoutError:
pass

html = HTML(url=self.url, html=content, default_encoding=DEFAULT_ENCODING)
html = HTML(url=self.url, html=content.encode(DEFAULT_ENCODING), default_encoding=DEFAULT_ENCODING)
self.__dict__.update(html.__dict__)


Expand Down

0 comments on commit aea3970

Please sign in to comment.