mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
expose InterleavedFrame read/write functions
This commit is contained in:
2
auth.go
2
auth.go
@@ -84,7 +84,7 @@ func (as *AuthServer) GenerateHeader() HeaderValue {
|
||||
}
|
||||
|
||||
// ValidateHeader validates the Authorization header sent by a client after receiving the
|
||||
// WWW-Authenticate header provided by GenerateHeader().
|
||||
// WWW-Authenticate header.
|
||||
func (as *AuthServer) ValidateHeader(v HeaderValue, method Method, ur *url.URL) error {
|
||||
if len(v) == 0 {
|
||||
return fmt.Errorf("authorization header not provided")
|
||||
|
Reference in New Issue
Block a user