forked from Icycoide/searxng
[fix] use raw response with etree.parsefromstring - Unicode strings with encoding declaration are not supported
This commit is contained in:
parent
259735f309
commit
8db527c1d2
2 changed files with 7 additions and 7 deletions
|
@ -85,7 +85,7 @@ def request(query, params):
|
|||
def response(resp):
|
||||
results = []
|
||||
|
||||
rss = etree.fromstring(resp.text)
|
||||
rss = etree.fromstring(resp.content)
|
||||
|
||||
ns = rss.nsmap
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue