mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-15 09:07:43 +00:00
Update change to suppress HTTPS verification InsecureRequestWarning to updated package (ref:hacks.txt).
This commit is contained in:
parent
8cfe028c15
commit
b518f727bb
3 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
* Update change to suppress reporting of Tornado exception error 1 to updated package (ref:hacks.txt)
|
* Update change to suppress reporting of Tornado exception error 1 to updated package (ref:hacks.txt)
|
||||||
* Update fix for API response header for JSON content type and the return of JSONP data to updated package (ref:hacks.txt)
|
* Update fix for API response header for JSON content type and the return of JSONP data to updated package (ref:hacks.txt)
|
||||||
* Update Requests library 2.6.2 to 2.7.0 (ab1f493)
|
* Update Requests library 2.6.2 to 2.7.0 (ab1f493)
|
||||||
|
* Update change to suppress HTTPS verification InsecureRequestWarning to updated package (ref:hacks.txt)
|
||||||
|
|
||||||
|
|
||||||
### 0.9.0 (2015-05-18 14:33:00 UTC)
|
### 0.9.0 (2015-05-18 14:33:00 UTC)
|
||||||
|
|
|
@ -760,12 +760,14 @@ 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. '
|
||||||
'Adding certificate verification is strongly advised. See: '
|
'Adding certificate verification is strongly advised. See: '
|
||||||
'https://urllib3.readthedocs.org/en/latest/security.html'),
|
'https://urllib3.readthedocs.org/en/latest/security.html'),
|
||||||
InsecureRequestWarning)
|
InsecureRequestWarning)
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
def connection_from_url(url, **kw):
|
def connection_from_url(url, **kw):
|
||||||
|
|
|
@ -81,6 +81,7 @@ except ImportError:
|
||||||
self.ciphers = cipher_suite
|
self.ciphers = cipher_suite
|
||||||
|
|
||||||
def wrap_socket(self, socket, server_hostname=None):
|
def wrap_socket(self, socket, server_hostname=None):
|
||||||
|
"""
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
'A true SSLContext object is not available. This prevents '
|
'A true SSLContext object is not available. This prevents '
|
||||||
'urllib3 from configuring SSL appropriately and may cause '
|
'urllib3 from configuring SSL appropriately and may cause '
|
||||||
|
@ -89,6 +90,7 @@ except ImportError:
|
||||||
'#insecureplatformwarning.',
|
'#insecureplatformwarning.',
|
||||||
InsecurePlatformWarning
|
InsecurePlatformWarning
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
kwargs = {
|
kwargs = {
|
||||||
'keyfile': self.keyfile,
|
'keyfile': self.keyfile,
|
||||||
'certfile': self.certfile,
|
'certfile': self.certfile,
|
||||||
|
|
Loading…
Reference in a new issue