Closed RangelReale closed 3 weeks ago
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"})) }
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: