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 brotli match when stream is nil #6

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Fix brotli match when stream is nil #6

merged 1 commit into from
Dec 16, 2024

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented Dec 16, 2024

The documentation for the Match function says that setting passing nil to stream is allowed, however there's a NPE in Brotli's Match because it doesn't properly check if stream is specified or not.

The documentation for the `Match` function says that setting passing
`nil` to `stream` is allowed, however there's a NPE in Brotli's `Match`
because it doesn't properly check if stream is specified or not.
Copy link
Owner

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Ah, you are right. Thank you!

@mholt mholt merged commit 23e0af8 into mholt:main Dec 16, 2024
3 checks passed
@Gusted Gusted deleted the brotli branch December 22, 2024 17:26
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.

2 participants