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 partial equality for URI with terminating questionmark #270

Merged
merged 1 commit into from Oct 30, 2018

Conversation

gferon
Copy link
Contributor

@gferon gferon commented Oct 30, 2018

When comparing a str to a Uri instance that has only the ? without any parameter, the comparison implementation would panic (out-of-bound indexing).

I'm not sure the return query.len() is the desired logic, but this fixes the bug and all tests pass.

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@seanmonstar seanmonstar merged commit 62f241e into hyperium:master Oct 30, 2018
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

2 participants