mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-24 23:07:36 +08:00
Merge pull request #265 from kidburglar/264-Possibility-to-avoid-certificate-verification
This commit is contained in:
commit
4141b7c280
1 changed files with 1 additions and 1 deletions
|
@ -1736,7 +1736,7 @@ def api_history():
|
||||||
def test_url(protocol, url):
|
def test_url(protocol, url):
|
||||||
url = urllib.unquote(url)
|
url = urllib.unquote(url)
|
||||||
try:
|
try:
|
||||||
result = requests.get(protocol + "://" + url, allow_redirects=False).json()['version']
|
result = requests.get(protocol + "://" + url, allow_redirects=False, verify=False).json()['version']
|
||||||
except:
|
except:
|
||||||
return dict(status=False)
|
return dict(status=False)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue