mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #590 from oddstr13/fix-unverified-request-1
Verify ssl by default
This commit is contained in:
commit
bcec403fd3
2 changed files with 3 additions and 4 deletions
|
@ -557,7 +557,7 @@ class PlayUtils(object):
|
||||||
path = os.path.join(temp, filename)
|
path = os.path.join(temp, filename)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get(src, stream=True, verify=False)
|
response = requests.get(src, stream=True, verify=settings('sslverify.bool'))
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
LOG.exception(error)
|
LOG.exception(error)
|
||||||
|
|
|
@ -4,10 +4,10 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
from six import ensure_str
|
||||||
|
|
||||||
from ..helper.utils import settings
|
from ..helper.utils import settings
|
||||||
from ..helper import LazyLogger
|
from ..helper import LazyLogger
|
||||||
from six import ensure_str
|
|
||||||
|
|
||||||
|
|
||||||
LOG = LazyLogger(__name__)
|
LOG = LazyLogger(__name__)
|
||||||
|
@ -388,8 +388,7 @@ class API(object):
|
||||||
"data": data
|
"data": data
|
||||||
}
|
}
|
||||||
|
|
||||||
if not settings('sslverify.bool'):
|
request_settings["verify"] = settings('sslverify.bool')
|
||||||
request_settings["verify"] = False
|
|
||||||
|
|
||||||
LOG.info("Sending %s request to %s" % (method, path))
|
LOG.info("Sending %s request to %s" % (method, path))
|
||||||
LOG.debug(request_settings['timeout'])
|
LOG.debug(request_settings['timeout'])
|
||||||
|
|
Loading…
Reference in a new issue