mirror of
https://github.com/searxng/searxng.git
synced 2025-06-03 05:34:25 -04:00
Fix results with no scheme
Related to #428, which was fixed in e3df22b but broken in a refactoring (b6c3cb0)
This commit is contained in:
parent
79705450df
commit
fea2c5a713
@ -138,6 +138,7 @@ class ResultContainer(object):
|
|||||||
# if the result has no scheme, use http as default
|
# if the result has no scheme, use http as default
|
||||||
if not result['parsed_url'].scheme:
|
if not result['parsed_url'].scheme:
|
||||||
result['parsed_url'] = result['parsed_url']._replace(scheme="http")
|
result['parsed_url'] = result['parsed_url']._replace(scheme="http")
|
||||||
|
result['url'] = result['parsed_url'].geturl()
|
||||||
|
|
||||||
result['host'] = result['parsed_url'].netloc
|
result['host'] = result['parsed_url'].netloc
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user