Browse Source

[fix] urlparsing fix

asciimoo 11 years ago
parent
commit
7965da55a7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      searx/engines/xpath.py

+ 2 - 0
searx/engines/xpath.py

@@ -32,6 +32,8 @@ def extract_url(xpath_results):
     parsed_url = urlparse(url)
     if not parsed_url.netloc:
         raise Exception('Cannot parse url')
+    if not parsed_url.path:
+        url += '/'
     return url
 
 def request(query, params):