commit: fea2c5a71308a4d3629342dfaca100fdd927b503
parent 79705450dfdf321c19839bce23c56d9d4a86ba68
Author: Luc Didry <luc@didry.org>
Date: Fri, 26 Feb 2016 12:05:11 +0100
Fix results with no scheme
Related to #428, which was fixed in e3df22b but broken in a refactoring
(b6c3cb0)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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