mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
support auth headers with zero or more spaces between keys
This commit is contained in:
@@ -49,6 +49,19 @@ var casesHeaderAuth = []struct {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"digest request 3",
|
||||
`Digest realm="4419b63f5e51",nonce="133767111917411116111311118211673010032", stale="FALSE"`,
|
||||
`Digest realm="4419b63f5e51", nonce="133767111917411116111311118211673010032", stale="FALSE"`,
|
||||
&HeaderAuth{
|
||||
Prefix: "Digest",
|
||||
Values: map[string]string{
|
||||
"realm": "4419b63f5e51",
|
||||
"nonce": "133767111917411116111311118211673010032",
|
||||
"stale": "FALSE",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"digest response",
|
||||
`Digest username="aa", realm="bb", nonce="cc", uri="dd", response="ee"`,
|
||||
|
Reference in New Issue
Block a user