on master help sign in
[fix] urlparsing fix
commit7965da55a7a3f494722750011b2a6d5110956750 authorasciimoo <asciimoo@gmail.com> dateSun 27 Oct 2013, 12:01 (13 years ago) parentb69fb84
1 file changed+2
searx/engines/xpath.py+2
searx/engines/xpath.py+2
@@ -32,6 +32,8 @@ def extract_url(xpath_results):
3232 parsed_url = urlparse(url)
3333 if not parsed_url.netloc:
3434 raise Exception('Cannot parse url')
35+ if not parsed_url.path:
36+ url += '/'
3537 return url
3638
3739def request(query, params):