Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not mutate the input payload in PyJWT.encode() #557

Merged
merged 1 commit into from
Dec 19, 2020
Merged

Do not mutate the input payload in PyJWT.encode() #557

merged 1 commit into from
Dec 19, 2020

Conversation

jdufresne
Copy link
Contributor

No description provided.

@jdufresne jdufresne mentioned this pull request Dec 18, 2020
@Dreamsorcerer
Copy link

Looks good

@@ -47,6 +47,7 @@ def encode(
)

# Payload
payload = payload.copy()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@jpadilla jpadilla added this to the v2.0.0 milestone Dec 19, 2020
@jpadilla jpadilla merged commit 2e1e69d into jpadilla:master Dec 19, 2020
@jdufresne jdufresne deleted the no-mutate branch December 21, 2020 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants