mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[fix] use raw response with etree.parsefromstring - Unicode strings with encoding declaration are not supported
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user