on master help sign in
[fix] urlparsing fix
7965da5asciimoo
searx/engines/xpath.py+2
@@ -32,6 +32,8 @@ def extract_url(xpath_results):
32 parsed_url = urlparse(url)
32 parsed_url = urlparse(url)
33 if not parsed_url.netloc:
33 if not parsed_url.netloc:
34 raise Exception('Cannot parse url')
34 raise Exception('Cannot parse url')
35+ if not parsed_url.path:
36+ url += '/'
35 return url
37 return url
36
38
37def request(query, params):
39def request(query, params):