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
If an Accept header contains a sequence of "semicolon" followed by "comma", we get a panic at negotiation.go:78.
Accept
runtime error: slice bounds out of range [-1:]
Add this to negotiation/negotiation_test.go to panic:
negotiation/negotiation_test.go
func TestPanic(t *testing.T) { assert.Equal(t, "", SelectQValueFast("a;,", []string{"d", "e"})) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If an
Accept
header contains a sequence of "semicolon" followed by "comma", we get a panic at negotiation.go:78.Add this to
negotiation/negotiation_test.go
to panic:The text was updated successfully, but these errors were encountered: