Skip to content

Commit 38e8545

Browse files
committed
Make sure verify_ssl is honored if httpc is defined to be requests.request .
1 parent 8863cfb commit 38e8545

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/cryptojwt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
except ImportError:
2323
pass
2424

25-
__version__ = '0.7.2'
25+
__version__ = '0.7.3'
2626

2727
logger = logging.getLogger(__name__)
2828

src/cryptojwt/key_bundle.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ def __init__(self, keys=None, source="", cache_time=300, verify_ssl=True,
144144
self.last_updated = 0
145145
if httpc:
146146
self.httpc = httpc
147-
self.verify_ssl = None
147+
if httpc == requests.request:
148+
self.verify_ssl = verify_ssl
149+
else:
150+
self.verify_ssl = None
148151
else:
149152
self.httpc = requests.request
150153
self.verify_ssl = verify_ssl

0 commit comments

Comments
 (0)