Update change to suppress HTTPS verification InsecureRequestWarning to updated package (ref:hacks.txt).

This commit is contained in:
JackDandy 2015-05-18 18:54:19 +01:00
parent 8cfe028c15
commit b518f727bb
3 changed files with 5 additions and 0 deletions

View file

@ -5,6 +5,7 @@
* 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 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)

View file

@ -760,12 +760,14 @@ class HTTPSConnectionPool(HTTPConnectionPool):
if not getattr(conn, 'sock', None): # AppEngine might not have `.sock`
conn.connect()
"""
if not conn.is_verified:
warnings.warn((
'Unverified HTTPS request is being made. '
'Adding certificate verification is strongly advised. See: '
'https://urllib3.readthedocs.org/en/latest/security.html'),
InsecureRequestWarning)
"""
def connection_from_url(url, **kw):

View file

@ -81,6 +81,7 @@ except ImportError:
self.ciphers = cipher_suite
def wrap_socket(self, socket, server_hostname=None):
"""
warnings.warn(
'A true SSLContext object is not available. This prevents '
'urllib3 from configuring SSL appropriately and may cause '
@ -89,6 +90,7 @@ except ImportError:
'#insecureplatformwarning.',
InsecurePlatformWarning
)
"""
kwargs = {
'keyfile': self.keyfile,
'certfile': self.certfile,