ソースを参照

[fix] urlparsing fix

asciimoo 11 年 前
コミット
7965da55a7
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2
    0
      searx/engines/xpath.py

+ 2
- 0
searx/engines/xpath.py ファイルの表示

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):