Fix check RTSP transport prefix

This commit is contained in:
Alexey Khit
2022-11-04 17:05:30 +03:00
parent 54f547977e
commit a31cbec3eb
+1 -1
View File
@@ -577,7 +577,7 @@ func (c *Conn) Accept() error {
Request: req,
}
if tr[:len(transport)] == transport {
if strings.HasPrefix(tr, transport) {
c.Session = "1" // TODO: fixme
res.Header.Set("Transport", tr[:len(transport)+3])
} else {