diff options
author | jturmel <jturmel@gmail.com> | 2014-03-17 22:52:54 -0500 |
---|---|---|
committer | jturmel <jturmel@gmail.com> | 2014-03-17 22:52:54 -0500 |
commit | 864e6f66cebccbc93d5edeca2d5e1128f1b60181 (patch) | |
tree | a9cdb60a3c123196c059411bb56dffdf0a0974d1 | |
parent | e41bee876c32d11070cb6f4686e41fd78b2c5168 (diff) | |
download | oauthlib-864e6f66cebccbc93d5edeca2d5e1128f1b60181.tar.gz |
Use the to_unicode helper
-rw-r--r-- | oauthlib/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py index db958ce..4a7404c 100644 --- a/oauthlib/common.py +++ b/oauthlib/common.py @@ -247,8 +247,8 @@ def generate_crypto_token(private_pem, request): } request.payload.update(payload) - token = jwt.encode(request.payload, - private_key, 'RS256').decode(encoding='UTF-8') + token = jwt.encode(request.payload, private_key, 'RS256') + token = to_unicode(token, "UTF-8") return token |