mirror of
https://github.com/aler9/gortsplib
synced 2025-11-02 21:14:07 +08:00
disable VerifyMethodDigestSHA256 unless explicitly set (#702)
This commit is contained in:
@@ -8,7 +8,9 @@ import (
|
||||
// GenerateWWWAuthenticate generates a WWW-Authenticate header.
|
||||
func GenerateWWWAuthenticate(methods []ValidateMethod, realm string, nonce string) base.HeaderValue {
|
||||
if methods == nil {
|
||||
methods = []ValidateMethod{ValidateMethodBasic, ValidateMethodDigestMD5, ValidateMethodSHA256}
|
||||
// disable VerifyMethodDigestSHA256 unless explicitly set
|
||||
// since it prevents FFmpeg from authenticating
|
||||
methods = []VerifyMethod{VerifyMethodBasic, VerifyMethodDigestMD5}
|
||||
}
|
||||
|
||||
var ret base.HeaderValue
|
||||
|
||||
Reference in New Issue
Block a user