We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The mux.Message.Path() method returns an invalid utf-8 string when the path option contain invalid bytes instead of an error.
mux.Message.Path()
This bug happened for incoming requests where the path option was set to []byte{0xbf, 'g'} (0xbf is not valid utf-8 encoding).
[]byte{0xbf, 'g'}
This example in the go playground demonstrates the issue.
The text was updated successfully, but these errors were encountered:
Thank you for the reporting issue. If you have a fix with a test we can merge it.
Sorry, something went wrong.
No branches or pull requests
The
mux.Message.Path()
method returns an invalid utf-8 string when the path option contain invalid bytes instead of an error.This bug happened for incoming requests where the path option was set to
[]byte{0xbf, 'g'}
(0xbf is not valid utf-8 encoding).This example in the go playground demonstrates the issue.
The text was updated successfully, but these errors were encountered: