summaryrefslogtreecommitdiff
path: root/searx/results.py
diff options
context:
space:
mode:
authorLuc Didry <luc@didry.org>2016-02-26 12:05:11 +0100
committerLuc Didry <luc@didry.org>2016-02-26 12:05:11 +0100
commitfea2c5a71308a4d3629342dfaca100fdd927b503 (patch)
tree80cdd0abe8bbce26cffff06b7cff1c881878aa5d /searx/results.py
parent79705450dfdf321c19839bce23c56d9d4a86ba68 (diff)
downloadsearxng-fea2c5a71308a4d3629342dfaca100fdd927b503.tar.gz
searxng-fea2c5a71308a4d3629342dfaca100fdd927b503.zip
Fix results with no scheme
Related to #428, which was fixed in e3df22b but broken in a refactoring (b6c3cb0)
Diffstat (limited to 'searx/results.py')
-rw-r--r--searx/results.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/results.py b/searx/results.py
index bc656f2ac..7e087382c 100644
--- a/searx/results.py
+++ b/searx/results.py
@@ -138,6 +138,7 @@ class ResultContainer(object):
# if the result has no scheme, use http as default
if not result['parsed_url'].scheme:
result['parsed_url'] = result['parsed_url']._replace(scheme="http")
+ result['url'] = result['parsed_url'].geturl()
result['host'] = result['parsed_url'].netloc