Skip to content

Commit

Permalink
Fix for headers disorder issue
Browse files Browse the repository at this point in the history
Related issue jpadilla#715
  • Loading branch information
kadabusha committed Dec 29, 2021
1 parent 77d7916 commit 894539e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt/api_jws.py
Expand Up @@ -100,7 +100,7 @@ def encode(
del header["typ"]

json_header = json.dumps(
header, separators=(",", ":"), cls=json_encoder
header, separators=(",", ":"), cls=json_encoder, sort_keys=True
).encode()

segments.append(base64url_encode(json_header))
Expand Down

0 comments on commit 894539e

Please sign in to comment.