mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Change suppress HTTPS verification InsecureRequestWarning.
Suppress this potentially confusing warning because many sites use self-certified certificates. Change a couple of lib references to be full paths.
This commit is contained in:
parent
d03f198e13
commit
6da09b8db0
6 changed files with 7 additions and 3 deletions
|
@ -29,6 +29,7 @@
|
||||||
* Fix Config Post Processing "Anime name pattern" custom javascript validation
|
* Fix Config Post Processing "Anime name pattern" custom javascript validation
|
||||||
* Add check that SSLv3 is available before use by requests lib
|
* Add check that SSLv3 is available before use by requests lib
|
||||||
* Update Requests library 2.3.0 to 2.4.3 (9dc6602)
|
* Update Requests library 2.3.0 to 2.4.3 (9dc6602)
|
||||||
|
* Change suppress HTTPS verification InsecureRequestWarning as many sites use self-certified certificates.
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,4 @@ Libs with customisations...
|
||||||
|
|
||||||
/tornado
|
/tornado
|
||||||
/lib/requests/packages/urllib3/contrib/pyopenssl.py
|
/lib/requests/packages/urllib3/contrib/pyopenssl.py
|
||||||
|
/lib/requests/packages/urllib3/connectionpool.py
|
||||||
|
|
|
@ -21,6 +21,6 @@ except ImportError:
|
||||||
# Handle the case where the requests has been patched to not have urllib3
|
# Handle the case where the requests has been patched to not have urllib3
|
||||||
# bundled as part of it's source.
|
# bundled as part of it's source.
|
||||||
try:
|
try:
|
||||||
from requests.packages.urllib3.response import HTTPResponse
|
from lib.requests.packages.urllib3.response import HTTPResponse
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urllib3.response import HTTPResponse
|
from urllib3.response import HTTPResponse
|
||||||
|
|
|
@ -721,6 +721,7 @@ class HTTPSConnectionPool(HTTPConnectionPool):
|
||||||
if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
|
if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
|
||||||
conn.connect()
|
conn.connect()
|
||||||
|
|
||||||
|
"""
|
||||||
if not conn.is_verified:
|
if not conn.is_verified:
|
||||||
warnings.warn((
|
warnings.warn((
|
||||||
'Unverified HTTPS request is being made. '
|
'Unverified HTTPS request is being made. '
|
||||||
|
@ -728,6 +729,7 @@ class HTTPSConnectionPool(HTTPConnectionPool):
|
||||||
'https://urllib3.readthedocs.org/en/latest/security.html '
|
'https://urllib3.readthedocs.org/en/latest/security.html '
|
||||||
'(This warning will only appear once by default.)'),
|
'(This warning will only appear once by default.)'),
|
||||||
InsecureRequestWarning)
|
InsecureRequestWarning)
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
def connection_from_url(url, **kw):
|
def connection_from_url(url, **kw):
|
||||||
|
|
|
@ -29,7 +29,7 @@ except ImportError:
|
||||||
import xml.etree.ElementTree as ElementTree
|
import xml.etree.ElementTree as ElementTree
|
||||||
|
|
||||||
from lib.dateutil.parser import parse
|
from lib.dateutil.parser import parse
|
||||||
from cachecontrol import CacheControl, caches
|
from lib.cachecontrol import CacheControl, caches
|
||||||
|
|
||||||
from tvrage_ui import BaseUI
|
from tvrage_ui import BaseUI
|
||||||
from tvrage_exceptions import (tvrage_error, tvrage_userabort, tvrage_shownotfound,
|
from tvrage_exceptions import (tvrage_error, tvrage_userabort, tvrage_shownotfound,
|
||||||
|
|
|
@ -62,7 +62,7 @@ from sickbeard import encodingKludge as ek
|
||||||
from sickbeard import notifiers
|
from sickbeard import notifiers
|
||||||
from sickbeard import clients
|
from sickbeard import clients
|
||||||
|
|
||||||
from cachecontrol import CacheControl, caches
|
from lib.cachecontrol import CacheControl, caches
|
||||||
from itertools import izip, cycle
|
from itertools import izip, cycle
|
||||||
|
|
||||||
urllib._urlopener = classes.SickBeardURLopener()
|
urllib._urlopener = classes.SickBeardURLopener()
|
||||||
|
|
Loading…
Reference in a new issue