Skip to content

Commit

Permalink
屏蔽SSL错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ring04h committed Apr 4, 2015
1 parent a00154f commit f3f9e91
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions libs/requests/packages/urllib3/connectionpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,11 +727,12 @@ def _validate_conn(self, conn):
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)
pass
# 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):
Expand Down

0 comments on commit f3f9e91

Please sign in to comment.