Skip to content

Commit d114c68

Browse files
committed
Bumped version
1 parent 6c0761b commit d114c68

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/cryptojwt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from binascii import unhexlify
1818

19-
__version__ = '0.3.1'
19+
__version__ = '0.3.2'
2020

2121
logger = logging.getLogger(__name__)
2222

src/cryptojwt/jwk.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,17 @@ def der_cert(der_data):
137137
return cert
138138

139139

140-
def load_x509_cert(url, spec2key):
140+
def load_x509_cert(url, spec2key, **get_args):
141141
"""
142142
Get and transform a X509 cert into a key.
143143
144144
:param url: Where the X509 cert can be found
145145
:param spec2key: A dictionary over keys already seen
146+
:param get_args: Extra key word arguments to the HTTP GET request
146147
:return: List of 2-tuples (keytype, key)
147148
"""
148149
try:
149-
r = request("GET", url, allow_redirects=True)
150+
r = request("GET", url, allow_redirects=True, **get_args)
150151
if r.status_code == 200:
151152
cert = str(r.text)
152153
try:

0 commit comments

Comments
 (0)