fix overlooked stream.text in conversion to util.response_text

This commit is contained in:
Eric Le Lay 2020-07-23 22:33:15 +02:00
parent 7c551ee6aa
commit 831186b0c7
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class Fetcher(object):
if autodiscovery and stream.headers.get('content-type', '').startswith('text/html'):
ad = FeedAutodiscovery(url)
# response_text() will assume utf-8 if no charset specified
ad.feed(util.response_text(stream.text))
ad.feed(util.response_text(stream))
if ad._resolved_url:
try:
self.fetch(ad._resolved_url, etag=None, modified=None, autodiscovery=False, **kwargs)