mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
headers: add negative unit tests
This commit is contained in:
@@ -63,7 +63,7 @@ func (h *Auth) Read(v base.HeaderValue) error {
|
||||
|
||||
i := strings.IndexByte(v0, ' ')
|
||||
if i < 0 {
|
||||
return fmt.Errorf("unable to split between method and keys (%v)", v)
|
||||
return fmt.Errorf("unable to split between method and keys (%v)", v0)
|
||||
}
|
||||
method, v0 := v0[:i], v0[i+1:]
|
||||
|
||||
|
Reference in New Issue
Block a user