mirror of
https://github.com/aler9/gortsplib
synced 2025-11-03 11:11:01 +08:00
headers: fix case in which a missing key was not detected
This commit is contained in:
@@ -70,12 +70,17 @@ func TestKeyValParseError(t *testing.T) {
|
||||
{
|
||||
"apexes not closed",
|
||||
`key1="v,1`,
|
||||
"apexes not closed (\"v,1)",
|
||||
"apexes not closed (key1=\"v,1)",
|
||||
},
|
||||
{
|
||||
"no key",
|
||||
`value`,
|
||||
"unable to find key (value)",
|
||||
"no key 1",
|
||||
`key=val,missing`,
|
||||
"unable to read key (key=val,missing)",
|
||||
},
|
||||
{
|
||||
"no key 2",
|
||||
`missing,key=val`,
|
||||
"unable to read key (missing,key=val)",
|
||||
},
|
||||
} {
|
||||
t.Run(ca.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user