summaryrefslogtreecommitdiff
path: root/searx/engines/bing_news.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-05-22 15:36:52 +0200
committerAdam Tauber <asciimoo@gmail.com>2017-05-22 15:36:52 +0200
commit8db527c1d233888b197bd2e8b2fbda8e88d0c60d (patch)
tree11e8af9028b19cb32b1d530d4c83359f99fc155f /searx/engines/bing_news.py
parent259735f30901ae884f8234f1f138c28a9e59713a (diff)
downloadsearxng-8db527c1d233888b197bd2e8b2fbda8e88d0c60d.tar.gz
searxng-8db527c1d233888b197bd2e8b2fbda8e88d0c60d.zip
[fix] use raw response with etree.parsefromstring - Unicode strings with encoding declaration are not supported
Diffstat (limited to 'searx/engines/bing_news.py')
-rw-r--r--searx/engines/bing_news.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py
index 0e2975814..b999b2a39 100644
--- a/searx/engines/bing_news.py
+++ b/searx/engines/bing_news.py
@@ -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