mirror of
https://github.com/searx/searx
synced 2025-03-02 02:27:48 +01:00
[fix] urlparsing fix
This commit is contained in:
parent
b69fb84b99
commit
7965da55a7
@ -32,6 +32,8 @@ def extract_url(xpath_results):
|
|||||||
parsed_url = urlparse(url)
|
parsed_url = urlparse(url)
|
||||||
if not parsed_url.netloc:
|
if not parsed_url.netloc:
|
||||||
raise Exception('Cannot parse url')
|
raise Exception('Cannot parse url')
|
||||||
|
if not parsed_url.path:
|
||||||
|
url += '/'
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user