mirror of
https://github.com/searxng/searxng.git
synced 2024-11-20 03:10:10 +01:00
[fix] merge with 79705450df
This commit is contained in:
parent
4d8996eb4d
commit
4cea71e3bb
@ -112,10 +112,10 @@ def response(resp):
|
|||||||
# append infobox
|
# append infobox
|
||||||
results.append({'infobox': infobox_title,
|
results.append({'infobox': infobox_title,
|
||||||
'attributes': result_chunks,
|
'attributes': result_chunks,
|
||||||
'urls': [{'title': 'Wolfram|Alpha', 'url': resp.request.headers['Referer']}]})
|
'urls': [{'title': 'Wolfram|Alpha', 'url': resp.request.headers['Referer'].decode('utf8')}]})
|
||||||
|
|
||||||
# append link to site
|
# append link to site
|
||||||
results.append({'url': resp.request.headers['Referer'],
|
results.append({'url': resp.request.headers['Referer'].decode('utf8'),
|
||||||
'title': 'Wolfram|Alpha',
|
'title': 'Wolfram|Alpha',
|
||||||
'content': infobox_title})
|
'content': infobox_title})
|
||||||
|
|
||||||
|
@ -159,9 +159,9 @@ def response(resp):
|
|||||||
|
|
||||||
results.append({'infobox': infobox_title,
|
results.append({'infobox': infobox_title,
|
||||||
'attributes': result_chunks,
|
'attributes': result_chunks,
|
||||||
'urls': [{'title': 'Wolfram|Alpha', 'url': resp.request.headers['Referer']}]})
|
'urls': [{'title': 'Wolfram|Alpha', 'url': resp.request.headers['Referer'].decode('utf8')}]})
|
||||||
|
|
||||||
results.append({'url': resp.request.headers['Referer'],
|
results.append({'url': resp.request.headers['Referer'].decode('utf8'),
|
||||||
'title': 'Wolfram|Alpha',
|
'title': 'Wolfram|Alpha',
|
||||||
'content': infobox_title})
|
'content': infobox_title})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user