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

Fix JWT.encode(nil) #203

Merged
merged 1 commit into from
May 15, 2017
Merged

Fix JWT.encode(nil) #203

merged 1 commit into from
May 15, 2017

Conversation

tmm1
Copy link
Contributor

@tmm1 tmm1 commented Apr 26, 2017

After 9c44e72 in #164, it is no longer possible to encode a nil value.

This PR fixes the issue for nil. But it occurs to me that similar problems could occur if someone tried to encode an array.

@sourcelevel-bot
Copy link

Hello, @tmm1! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

@tmm1
Copy link
Contributor Author

tmm1 commented May 4, 2017

Any objections to this change? It's quite straightfoward...

@excpt excpt merged commit 281bbd6 into jwt:master May 15, 2017
@tmm1 tmm1 deleted the nil-fix branch July 24, 2017 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants