We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 316565d commit 15c8afdCopy full SHA for 15c8afd
.travis.yml
@@ -4,6 +4,7 @@ sudo: false
4
5
python:
6
- "3.6"
7
+ - "3.5"
8
9
install:
10
- pip install tox
src/cryptojwt/jwx.py
@@ -11,7 +11,7 @@
11
from .jwk.rsa import load_x509_cert
12
from .jwk.rsa import RSAKey
13
from .exception import HeaderError
14
-from .utils import b64d, as_bytes
+from .utils import b64d, as_bytes, as_unicode
15
16
logger = logging.getLogger(__name__)
17
@@ -247,7 +247,7 @@ def _decode(self, payload):
247
_msg = b64d(as_bytes(payload))
248
if "cty" in self:
249
if self["cty"] == "JWT":
250
- _msg = json.loads(_msg)
+ _msg = json.loads(as_unicode(_msg))
251
return _msg
252
253
def dump_header(self):
0 commit comments