mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
headers: rename Auth into Authenticate
This commit is contained in:
@@ -20,7 +20,7 @@ type Authorization struct {
|
||||
BasicPass string
|
||||
|
||||
// digest values
|
||||
DigestValues Auth
|
||||
DigestValues Authenticate
|
||||
}
|
||||
|
||||
// Read decodes an Authorization header.
|
||||
@@ -56,7 +56,7 @@ func (h *Authorization) Read(v base.HeaderValue) error {
|
||||
case strings.HasPrefix(v0, "Digest "):
|
||||
h.Method = AuthDigest
|
||||
|
||||
var vals Auth
|
||||
var vals Authenticate
|
||||
err := vals.Read(base.HeaderValue{v0})
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user