File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
from .jwk .rsa import load_x509_cert
12
12
from .jwk .rsa import RSAKey
13
13
from .exception import HeaderError
14
- from .utils import b64d
14
+ from .utils import b64d , as_bytes
15
15
16
16
logger = logging .getLogger (__name__ )
17
17
@@ -244,7 +244,7 @@ def _pick_alg(self, keys):
244
244
return alg
245
245
246
246
def _decode (self , payload ):
247
- _msg = b64d (bytes (payload ))
247
+ _msg = b64d (as_bytes (payload ))
248
248
if "cty" in self :
249
249
if self ["cty" ] == "JWT" :
250
250
_msg = json .loads (_msg )
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py{35, 36,37},quality
2
+ envlist = py{36,37},quality
3
3
4
4
[testenv]
5
5
passenv = CI TRAVIS TRAVIS_*
@@ -10,6 +10,7 @@ extras = testing
10
10
deps =
11
11
codecov
12
12
pytest-cov
13
+ pytest-httpserver
13
14
14
15
[pep8]
15
16
max-line-length =100
You can’t perform that action at this time.
0 commit comments