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 View File

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
 
37
 def request(query, params):
39
 def request(query, params):