mirror of
https://github.com/aler9/gortsplib
synced 2025-10-27 09:11:17 +08:00
client: fix detection of GET_PARAMETER support
This commit is contained in:
@@ -956,7 +956,7 @@ func (cc *ClientConn) doOptions(u *base.URL) (*base.Response, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, m := range strings.Split(pub[0], ",") {
|
for _, m := range strings.Split(pub[0], ",") {
|
||||||
if base.Method(m) == base.GetParameter {
|
if base.Method(strings.Trim(m, " ")) == base.GetParameter {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user